Fix block parsing for MCPE

This commit is contained in:
Jesse Boyd 2016-09-05 04:04:29 +10:00
parent 73817cf8a1
commit b3787d4dbe

View File

@ -211,7 +211,10 @@ public class NukkitWorld extends LocalWorld {
@Override
public boolean isValidBlockType(int type) {
Item item = Item.get(type);
return item != null && item.getId() < 256 && item.canBePlaced();
if (item == null) {
return false;
}
return item != null && item.getId() < 256 && item.getBlock() != null;
}
@Override