Use Forge setting to determine baby zombie chance. Fixes #3690.

This commit is contained in:
Ben Staddon 2017-02-23 23:18:59 +00:00 committed by LexManos
parent 403eda184a
commit d3c6130f88

View file

@ -56,3 +56,12 @@
entityzombie.func_180482_a(this.field_70170_p.func_175649_E(new BlockPos(entityzombie)), (IEntityLivingData)null);
this.func_110148_a(field_110186_bp).func_111121_a(new AttributeModifier("Zombie reinforcement caller charge", -0.05000000074505806D, 0));
entityzombie.func_110148_a(field_110186_bp).func_111121_a(new AttributeModifier("Zombie reinforcement callee charge", -0.05000000074505806D, 0));
@@ -435,7 +447,7 @@
if (p_180482_2_ == null)
{
- p_180482_2_ = new EntityZombie.GroupData(this.field_70170_p.field_73012_v.nextFloat() < 0.05F);
+ p_180482_2_ = new EntityZombie.GroupData(this.field_70170_p.field_73012_v.nextFloat() < net.minecraftforge.common.ForgeModContainer.zombieBabyChance);
}
if (p_180482_2_ instanceof EntityZombie.GroupData)