summaryrefslogtreecommitdiffstats
path: root/src/main/java/org
diff options
context:
space:
mode:
authorsk89q <the.sk89q@gmail.com>2011-04-11 17:10:17 -0700
committersk89q <the.sk89q@gmail.com>2011-04-11 17:10:17 -0700
commit7baf5fa4849b969856ceae6cdcff70eed3e893ed (patch)
tree4015b397db12fc4ef56bd027e7f9be58eeab7e21 /src/main/java/org
parent8de85b8afbac46b845799dc75eaa54fd1c9fd66d (diff)
downloadcraftbukkit-7baf5fa4849b969856ceae6cdcff70eed3e893ed.tar
craftbukkit-7baf5fa4849b969856ceae6cdcff70eed3e893ed.tar.gz
craftbukkit-7baf5fa4849b969856ceae6cdcff70eed3e893ed.tar.lz
craftbukkit-7baf5fa4849b969856ceae6cdcff70eed3e893ed.tar.xz
craftbukkit-7baf5fa4849b969856ceae6cdcff70eed3e893ed.zip
Made fauxSleeping persist on death and cross-world teleport.
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index d66e4eb2..225196e8 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -166,6 +166,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
newEntity.locZ = location.getZ();
newEntity.displayName = entity.displayName;
newEntity.compassTarget = entity.compassTarget;
+ newEntity.fauxSleeping = entity.fauxSleeping;
newWorld.u.c((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
teleportSuccess = newEntity.a.teleport(location);