mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 15:08:27 +02:00
SPIGOT-4888: setSleepingIgnored resets the night even when there is no one in a bed
This commit is contained in:
parent
15e02b4056
commit
ee8818473d
@ -182,15 +182,15 @@
|
||||
return entityliving != null && entityliving.isAlive() && this.f(entityliving.getChunkCoordinates());
|
||||
});
|
||||
|
||||
@@ -421,7 +485,7 @@
|
||||
@@ -419,7 +483,7 @@
|
||||
while (iterator.hasNext()) {
|
||||
EntityPlayer entityplayer = (EntityPlayer) iterator.next();
|
||||
|
||||
if (entityplayer.isSpectator()) {
|
||||
- if (entityplayer.isSpectator()) {
|
||||
+ if (entityplayer.isSpectator() || (entityplayer.fauxSleeping && !entityplayer.isSleeping())) { // CraftBukkit
|
||||
++i;
|
||||
- } else if (entityplayer.isSleeping()) {
|
||||
+ } else if (entityplayer.isSleeping() || entityplayer.fauxSleeping) { // CraftBukkit
|
||||
} else if (entityplayer.isSleeping()) {
|
||||
++j;
|
||||
}
|
||||
}
|
||||
@@ -437,10 +501,22 @@
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user