mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
Fixed WorldEdit.getBlock() not supporting custom blocks when they are returned by ServerInterface.resolveItem().
This commit is contained in:
parent
dfefd479b6
commit
6e24d981f6
@ -315,8 +315,9 @@ public class WorldEdit {
|
||||
blockType = BlockType.lookup(testID);
|
||||
if (blockType == null) {
|
||||
int t = server.resolveItem(testID);
|
||||
if (t > 0 && t < 256) {
|
||||
blockType = BlockType.fromID(t);
|
||||
if (t > 0) {
|
||||
blockType = BlockType.fromID(t); // Could be null
|
||||
blockId = t;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user