Even don't try to spawn invalid entityitem, fix for extrabiomes
This commit is contained in:
@ -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
|
||||
}
|
||||
|
@ -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;
|
||||
+ }
|
||||
}
|
||||
|
Reference in New Issue
Block a user