mirror of
https://github.com/PaperMC/Paper.git
synced 2025-09-01 21:03:52 -07:00
Fixin' the problem of AFK people not in bed.
This commit is contained in:
@@ -212,4 +212,13 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
||||
public void updateInventory() {
|
||||
getHandle().m();
|
||||
}
|
||||
|
||||
public void setSleepingIgnored(boolean isSleeping) {
|
||||
getHandle().fauxSleeping = isSleeping;
|
||||
((CraftWorld)getWorld()).getHandle().checkSleepStatus();
|
||||
}
|
||||
|
||||
public boolean isSleepingIgnored() {
|
||||
return getHandle().fauxSleeping;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user