summaryrefslogtreecommitdiffstats
path: root/src/main/java/net/minecraft/server
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-09-23 21:05:23 +0200
committerErik Broes <erikbroes@grum.nl>2011-09-23 21:05:23 +0200
commit75ac4e00b27d05627a3c4ffde7879a37dd612d02 (patch)
tree404ceb9f201f84aed207f253059a9b670662def1 /src/main/java/net/minecraft/server
parenta2957c7b8f72180912b4ad1a04b4bee35f91c57a (diff)
downloadcraftbukkit-75ac4e00b27d05627a3c4ffde7879a37dd612d02.tar
craftbukkit-75ac4e00b27d05627a3c4ffde7879a37dd612d02.tar.gz
craftbukkit-75ac4e00b27d05627a3c4ffde7879a37dd612d02.tar.lz
craftbukkit-75ac4e00b27d05627a3c4ffde7879a37dd612d02.tar.xz
craftbukkit-75ac4e00b27d05627a3c4ffde7879a37dd612d02.zip
Cancel bed return method if entity is ignoring sleep. Thanks to EdGruberman.
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r--src/main/java/net/minecraft/server/EntityHuman.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityHuman.java b/src/main/java/net/minecraft/server/EntityHuman.java
index eafc83b2..ab564492 100644
--- a/src/main/java/net/minecraft/server/EntityHuman.java
+++ b/src/main/java/net/minecraft/server/EntityHuman.java
@@ -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;