Fix entity count being incorrect for spawning logic. Now filter out 'persistant' entities.
This commit is contained in:
parent
eacffb2b6e
commit
fb9ffa40fd
1 changed files with 3 additions and 2 deletions
|
@ -103,7 +103,7 @@
|
|||
|
||||
public void func_70078_a(Entity p_70078_1_)
|
||||
{
|
||||
+ if(!(this instanceof EntityLivingBase) && !net.minecraftforge.event.ForgeEventFactory.canMountEntity(this, p_70078_1_, true)){ return; }
|
||||
+ if(!(this instanceof EntityLivingBase) && !net.minecraftforge.event.ForgeEventFactory.canMountEntity(this, p_70078_1_, true)){ return; }
|
||||
this.field_70149_e = 0.0D;
|
||||
this.field_70147_f = 0.0D;
|
||||
|
||||
|
@ -125,7 +125,7 @@
|
|||
}
|
||||
|
||||
public boolean func_174816_a(Explosion p_174816_1_, World p_174816_2_, BlockPos p_174816_3_, IBlockState p_174816_4_, float p_174816_5_)
|
||||
@@ -2357,4 +2405,183 @@
|
||||
@@ -2357,4 +2405,184 @@
|
||||
|
||||
EnchantmentHelper.func_151385_b(p_174815_1_, p_174815_2_);
|
||||
}
|
||||
|
@ -238,6 +238,7 @@
|
|||
+ */
|
||||
+ public boolean isCreatureType(EnumCreatureType type, boolean forSpawnCount)
|
||||
+ {
|
||||
+ if (forSpawnCount && (this instanceof EntityLiving) && ((EntityLiving)this).func_104002_bU()) return false;
|
||||
+ return type.func_75598_a().isAssignableFrom(this.getClass());
|
||||
+ }
|
||||
+
|
||||
|
|
Loading…
Reference in a new issue