mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 18:27:41 +01:00
Fixin' the problem of AFK people not in bed.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
2ddf5d1504
commit
8eff7522ff
@ -212,4 +212,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
public void updateInventory() {
|
public void updateInventory() {
|
||||||
getHandle().m();
|
getHandle().m();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void setSleepingIgnored(boolean isSleeping) {
|
||||||
|
getHandle().fauxSleeping = isSleeping;
|
||||||
|
((CraftWorld)getWorld()).getHandle().checkSleepStatus();
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean isSleepingIgnored() {
|
||||||
|
return getHandle().fauxSleeping;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user