Remove zombie chance config options (#9950)

This commit is contained in:
Paint_Ninja authored and GitHub committed 2024-05-01 22:27:28 +01:00
1 parent 115eb5e4c8
commit 0467d71466
2 files changed
-34

No files matched your search

@@ -73,21 +73,3 @@
if (!this.isSilent()) {
p_219160_.levelEvent(null, 1026, this.blockPosition(), 0);
}
@@ -487,7 +_,7 @@
}
public static boolean getSpawnAsBabyOdds(RandomSource p_219163_) {
- return p_219163_.nextFloat() < 0.05F;
+ return p_219163_.nextFloat() < net.minecraftforge.common.ForgeConfig.SERVER.zombieBabyChance.get();
}
protected void handleAttributes(float p_34340_) {
@@ -510,7 +_,7 @@
}
protected void randomizeReinforcementsChance() {
- this.getAttribute(Attributes.SPAWN_REINFORCEMENTS_CHANCE).setBaseValue(this.random.nextDouble() * 0.1F);
+ this.getAttribute(Attributes.SPAWN_REINFORCEMENTS_CHANCE).setBaseValue(this.random.nextDouble() * net.minecraftforge.common.ForgeConfig.SERVER.zombieBaseSummonChance.get());
}
@Override