Faux sleepers wake up normally. Fixes BUKKIT-3667

This commit is contained in:
Yariv Livay 2013-02-25 22:26:36 +02:00 committed by Travis Watkins
parent 5d24f2b9c0
commit c99de378c6

View file

@ -523,7 +523,7 @@ 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.sleeping) return; // CraftBukkit - Can't leave bed if not in one!
if (this.isSleeping()) {
this.r().getTracker().sendPacketToEntity(this, new PacketPlayOutAnimation(this, 2));