Copy displayname when cross-world teleporting
This commit is contained in:
parent
9162a654c4
commit
1eb2f75f53
@ -164,6 +164,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
|
|||||||
newEntity.locX = location.getX();
|
newEntity.locX = location.getX();
|
||||||
newEntity.locY = location.getY();
|
newEntity.locY = location.getY();
|
||||||
newEntity.locZ = location.getZ();
|
newEntity.locZ = location.getZ();
|
||||||
|
newEntity.displayName = entity.displayName;
|
||||||
newEntity.compassTarget = entity.compassTarget;
|
newEntity.compassTarget = entity.compassTarget;
|
||||||
newWorld.u.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
|
newWorld.u.d((int) location.getBlockX() >> 4, (int) location.getBlockZ() >> 4);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user