Cancel bed return method if entity is ignoring sleep. Thanks to EdGruberman.

This commit is contained in:
Erik Broes 2011-09-23 21:05:23 +02:00
parent a2957c7b8f
commit 75ac4e00b2

View File

@ -874,6 +874,8 @@ 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!
this.b(0.6F, 1.8F);
this.m_();
ChunkCoordinates chunkcoordinates = this.E;