mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-20 23:46:57 +01:00
Made fauxSleeping persist on death and cross-world teleport.
This commit is contained in:
parent
8de85b8afb
commit
7baf5fa484
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue