From 40c8cc04215bcd05ad26caee10c9cb612657e131 Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 26 Sep 2011 15:37:38 -0700 Subject: [PATCH] Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman. --- src/main/java/net/minecraft/server/SpawnerCreature.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java index 7e728f8776..69234367cd 100644 --- a/src/main/java/net/minecraft/server/SpawnerCreature.java +++ b/src/main/java/net/minecraft/server/SpawnerCreature.java @@ -161,6 +161,7 @@ public final class SpawnerCreature { while (iterator.hasNext()) { EntityHuman entityhuman = (EntityHuman) iterator.next(); + if (entityhuman.fauxSleeping) continue; // CraftBukkit - Do not generate nightmares for humans ignoring sleep Class[] aclass = a; if (aclass != null && aclass.length != 0) {