Skip to content

Commit

Permalink
Do not spawn zombie babies on the horses
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 20, 2022
1 parent bff8304 commit a50f77d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ private ZombieHorseEntity getHorse(LocalDifficulty localDifficulty) {
private ZombieEntity getZombie(LocalDifficulty localDifficulty, AbstractHorseEntity vehicle) {
ZombieEntity zombie = EntityType.ZOMBIE.create(vehicle.world);
zombie.initialize((ServerWorld) vehicle.world, localDifficulty, SpawnReason.TRIGGERED, null, null);
zombie.setBaby(false);
zombie.setPosition(vehicle.getX(), vehicle.getY(), vehicle.getZ());
zombie.timeUntilRegen = 60;
zombie.setPersistent();
Expand Down

0 comments on commit a50f77d

Please sign in to comment.