3
0

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

@ -780,3 +780,14 @@
public float func_145772_a(Explosion p_145772_1_, World p_145772_2_, int p_145772_3_, int p_145772_4_, int p_145772_5_, Block p_145772_6_)
{
return p_145772_6_.getExplosionResistance(this, p_145772_2_, p_145772_3_, p_145772_4_, p_145772_5_, posX, posY + getEyeHeight(), posZ);
@@ -2474,4 +2925,10 @@
}
}
}
+
+ // Cauldron start
+ public boolean entityAllowedToSpawn() {
+ return true;
+ }
+ // Cauldron end
}

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