mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Made fauxSleeping persist on death and cross-world teleport.
This commit is contained in:
1 parent
8de85b8afb
commit
7baf5fa484
2 files changed
+3
-1
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user