summaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-09-26 15:37:38 -0700
committersk89q <the.sk89q@gmail.com>2011-09-26 15:37:38 -0700
commit40c8cc04215bcd05ad26caee10c9cb612657e131 (patch)
treefce81b7bb9c070d71955b4eb39798c28615beb55 /src/main
parentafd95b7e309309cdfb59ed62c4303a18544e3c83 (diff)
downloadcraftbukkit-40c8cc04215bcd05ad26caee10c9cb612657e131.tar
craftbukkit-40c8cc04215bcd05ad26caee10c9cb612657e131.tar.gz
craftbukkit-40c8cc04215bcd05ad26caee10c9cb612657e131.tar.lz
craftbukkit-40c8cc04215bcd05ad26caee10c9cb612657e131.tar.xz
craftbukkit-40c8cc04215bcd05ad26caee10c9cb612657e131.zip
Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman.
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/net/minecraft/server/SpawnerCreature.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/SpawnerCreature.java b/src/main/java/net/minecraft/server/SpawnerCreature.java
index 7e728f87..69234367 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) {