3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-11-09 13:00:05 +01:00

Fixed WorldEdit.getBlock() not supporting custom blocks when they are returned by ServerInterface.resolveItem().

Dieser Commit ist enthalten in:
sk89q 2012-04-05 00:01:46 -07:00
Ursprung dfefd479b6
Commit 6e24d981f6

Datei anzeigen

@ -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;
}
}
}