mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +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);
|
blockType = BlockType.lookup(testID);
|
||||||
if (blockType == null) {
|
if (blockType == null) {
|
||||||
int t = server.resolveItem(testID);
|
int t = server.resolveItem(testID);
|
||||||
if (t > 0 && t < 256) {
|
if (t > 0) {
|
||||||
blockType = BlockType.fromID(t);
|
blockType = BlockType.fromID(t); // Could be null
|
||||||
|
blockId = t;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user