Made fauxSleeping persist on death and cross-world teleport.

Dieser Commit ist enthalten in:
sk89q 2011-04-11 17:10:17 -07:00
Ursprung 8de85b8afb
Commit 7baf5fa484
2 geänderte Dateien mit 3 neuen und 1 gelöschten Zeilen

Datei anzeigen

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

Datei anzeigen

@ -166,6 +166,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
newEntity.locZ = location.getZ(); newEntity.locZ = location.getZ();
newEntity.displayName = entity.displayName; newEntity.displayName = entity.displayName;
newEntity.compassTarget = entity.compassTarget; newEntity.compassTarget = entity.compassTarget;
newEntity.fauxSleeping = entity.fauxSleeping;
newWorld.u.c((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4); newWorld.u.c((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
teleportSuccess = newEntity.a.teleport(location); teleportSuccess = newEntity.a.teleport(location);