diff options
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityHuman.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index dd6f612f..eafc83b2 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -291,8 +291,8 @@ public abstract class EntityHuman extends EntityLiving { --this.n; } - // CraftBukkit - spawnMonsters -> allowMonsters - if (!this.world.allowMonsters && this.health < 20 && this.ticksLived % 20 * 12 == 0) { + if (this.world.spawnMonsters == 0 && this.health < 20 && this.ticksLived % 20 * 12 == 0) { + // CraftBukkit - added regain reason of "REGEN" for filtering purposes. this.c(1, RegainReason.REGEN); } |