From fd57c7111c8739bc992cc5e637d428e118375a04 Mon Sep 17 00:00:00 2001 From: Nathan Adams Date: Tue, 11 Oct 2011 02:38:32 +0100 Subject: [PATCH] Fixed fauxSleeping check on leaving bed --- src/main/java/net/minecraft/server/EntityHuman.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java index 564fb28816..3cce840906 100644 --- a/src/main/java/net/minecraft/server/EntityHuman.java +++ b/src/main/java/net/minecraft/server/EntityHuman.java @@ -875,7 +875,7 @@ public abstract class EntityHuman extends EntityLiving { } public void a(boolean flag, boolean flag1, boolean flag2) { - if (this.fauxSleeping) return; // CraftBukkit - Can't leave bed if not in one! + if (this.fauxSleeping && !this.sleeping) return; // CraftBukkit - Can't leave bed if not in one! this.b(0.6F, 1.8F); this.m_();