mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman.
This commit is contained in:
1 parent
afd95b7e30
commit
40c8cc0421
1 file changed
+1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user