mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-28 05:25:42 +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()) {
|
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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user