mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Made fauxSleeping persist on death and cross-world teleport.
By: sk89q <the.sk89q@gmail.com>
This commit is contained in:
parent
8eff7522ff
commit
81df3f5812
1 changed files with 1 additions and 0 deletions
|
@ -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