Archiviert
13
0

Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman.

Dieser Commit ist enthalten in:
sk89q 2011-09-26 15:37:38 -07:00
Ursprung afd95b7e30
Commit 40c8cc0421

Datei anzeigen

@ -161,6 +161,7 @@ public final class SpawnerCreature {
while (iterator.hasNext()) { while (iterator.hasNext()) {
EntityHuman entityhuman = (EntityHuman) iterator.next(); EntityHuman entityhuman = (EntityHuman) iterator.next();
if (entityhuman.fauxSleeping) continue; // CraftBukkit - Do not generate nightmares for humans ignoring sleep
Class[] aclass = a; Class[] aclass = a;
if (aclass != null && aclass.length != 0) { if (aclass != null && aclass.length != 0) {