Fix block parsing for MCPE
This commit is contained in:
parent
73817cf8a1
commit
b3787d4dbe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user