Fixin' the problem of AFK people not in bed.

This commit is contained in:
sk89q
2011-04-11 11:48:31 -07:00
parent 2685de187a
commit 86c467cb50
3 changed files with 35 additions and 3 deletions

View File

@@ -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;
}
}