Fix "moved too quickly" detection.

This commit is contained in:
Travis Watkins
2012-08-05 23:45:38 -05:00
parent e1a4273957
commit 164c066453
3 changed files with 9 additions and 16 deletions

View File

@@ -431,6 +431,8 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
}
public void a(boolean flag, boolean flag1, boolean flag2) {
if (this.fauxSleeping && !this.sleeping) return; // CraftBukkit - Can't leave bed if not in one!
if (this.isSleeping()) {
this.q().getTracker().sendPacketToEntity(this, new Packet18ArmAnimation(this, 3));
}