3
0
Fork 1

Add some checks to entityitem :)

kcx-1614
Prototik 2015-05-27 18:44:16 +07:00
parent d24b372625
commit bdbb1413cb
1 changed files with 1 additions and 1 deletions

View File

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