mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 11:38:29 +01:00
Fixed monsters being spawned even when one was faux sleeping. Thanks to EdGruberman.
This commit is contained in:
parent
afd95b7e30
commit
40c8cc0421
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user