Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-18 20:40:08 +01:00
SPIGOT-4888: setSleepingIgnored resets the night even when there is no one in a bed
Dieser Commit ist enthalten in:
Ursprung
15e02b4056
Commit
ee8818473d
@ -182,15 +182,15 @@
|
|||||||
return entityliving != null && entityliving.isAlive() && this.f(entityliving.getChunkCoordinates());
|
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;
|
++i;
|
||||||
- } else if (entityplayer.isSleeping()) {
|
} else if (entityplayer.isSleeping()) {
|
||||||
+ } else if (entityplayer.isSleeping() || entityplayer.fauxSleeping) { // CraftBukkit
|
|
||||||
++j;
|
++j;
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -437,10 +501,22 @@
|
@@ -437,10 +501,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren