SPIGOT-1168: Fix setSleepingIgnored not working on spectators.

This commit is contained in:
md_5 2015-09-06 15:05:56 +10:00
parent 5e9f698fac
commit 9cd11117fe

View file

@ -254,7 +254,7 @@
+ if (entityhuman.isDeeplySleeping()) {
+ foundActualSleepers = true;
+ }
+ } while (!entityhuman.isSpectator() && (entityhuman.isDeeplySleeping() || entityhuman.fauxSleeping));
+ } while (!entityhuman.isSpectator() || entityhuman.isDeeplySleeping() || entityhuman.fauxSleeping);
+ // CraftBukkit end
return false;