1
0
forked from xjboss/KCauldronX

Even don't try to spawn invalid entityitem, fix for extrabiomes

This commit is contained in:
Prototik
2015-05-27 18:26:08 +07:00
parent a42829ecb6
commit d24b372625
3 changed files with 52 additions and 29 deletions

View File

@ -299,3 +299,14 @@
}
public void setEntityItemStack(ItemStack p_92058_1_)
@@ -451,4 +526,10 @@
{
this.field_145801_f = p_145799_1_;
}
+
+ @Override
+ public boolean entityAllowedToSpawn() {
+ ItemStack stack = getDataWatcher().getWatchableObjectItemStack(10);
+ return stack != null && stack.stackSize > 0;
+ }
}