Fixin' the problem of AFK people not in bed.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user