Made fauxSleeping persist on death and cross-world teleport.

By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
CraftBukkit/Spigot 2011-04-11 17:10:17 -07:00
parent 8eff7522ff
commit 81df3f5812

View file

@ -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);