Add some checks to entityitem :)
This commit is contained in:
parent
d24b372625
commit
bdbb1413cb
@ -307,6 +307,6 @@
|
||||
+ @Override
|
||||
+ public boolean entityAllowedToSpawn() {
|
||||
+ ItemStack stack = getDataWatcher().getWatchableObjectItemStack(10);
|
||||
+ return stack != null && stack.stackSize > 0;
|
||||
+ return stack != null && stack.getItem() != null && stack.stackSize > 0;
|
||||
+ }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user