mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-17 10:41:41 +01:00
Copy displayname when cross-world teleporting
By: Erik Broes <erikbroes@grum.nl>
This commit is contained in:
parent
1a013161ec
commit
b80723bd12
1 changed files with 1 additions and 0 deletions
|
@ -164,6 +164,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||
newEntity.locX = location.getX();
|
||||
newEntity.locY = location.getY();
|
||||
newEntity.locZ = location.getZ();
|
||||
newEntity.displayName = entity.displayName;
|
||||
newEntity.compassTarget = entity.compassTarget;
|
||||
newWorld.u.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue