mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-23 11:06:29 +01:00
SPIGOT-1168: Fix setSleepingIgnored not working on spectators.
This commit is contained in:
parent
5e9f698fac
commit
9cd11117fe
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user