Hide zombie particles properly

This commit is contained in:
Electroblob77
2020-05-31 17:31:31 +01:00
parent cfdda5716d
commit dd12d2ebcb
2 changed files with 16 additions and 3 deletions
@@ -38,7 +38,7 @@ public class EntityZombieSpawner extends EntityMagicConstruct {
damageMultiplier - 1, Operations.MULTIPLY_CUMULATIVE));
zombie.setHealth(zombie.getMaxHealth()); // Need to set this because we may have just modified the value
zombie.hurtResistantTime = 30; // Prevent fall damage
zombie.showSpawnParticles = false; // Hide spawn particles or they pop out the top of the hidden box
zombie.hideParticles(); // Hide spawn particles or they pop out the top of the hidden box
world.spawnEntity(zombie);
}