From ff67eda4c4d1018dd956010918645cecd35c2854 Mon Sep 17 00:00:00 2001 From: EvilSeph Date: Wed, 22 Jun 2011 12:49:34 -0400 Subject: [PATCH] Fixed players not healing in other worlds when spawn-monsters is false. --- src/main/java/net/minecraft/server/EntityHuman.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index 88dbc4e749..3f20e67f4d 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -176,7 +176,8 @@ public abstract class EntityHuman extends EntityLiving { } public void u() { - if (this.world.spawnMonsters == 0 && this.health < 20 && this.ticksLived % 20 * 12 == 0) { + // CraftBukkit - spawnMonsters -> allowMonsters + if (!this.world.allowMonsters && this.health < 20 && this.ticksLived % 20 * 12 == 0) { this.b(1); }