Made fauxSleeping persist on death and cross-world teleport.

This commit is contained in:
sk89q 2011-04-11 17:10:17 -07:00
parent 8de85b8afb
commit 7baf5fa484
2 changed files with 3 additions and 1 deletions

View File

@ -184,7 +184,8 @@ public class ServerConfigurationManager {
entityplayer1.a = entityplayer.a;
entityplayer1.displayName = entityplayer.displayName; // CraftBukkit
entityplayer1.compassTarget = entityplayer.compassTarget; // CraftBukkit
entityplayer1.fauxSleeping = entityplayer.fauxSleeping; // CraftBukkit
if (chunkcoordinates != null) {
ChunkCoordinates chunkcoordinates1 = EntityHuman.a(entityplayer.world, chunkcoordinates);

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