summaryrefslogtreecommitdiffstats
path: root/src/main/java
diff options
context:
space:
mode:
authorErik Broes <erikbroes@grum.nl>2011-03-25 21:22:57 +0100
committerErik Broes <erikbroes@grum.nl>2011-03-25 21:22:57 +0100
commit1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf (patch)
treedb89010ce8a1982258242ee44b8b87574886de4a /src/main/java
parent9162a654c44801ee40e47a7dad94cc7a7c95afed (diff)
downloadcraftbukkit-1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf.tar
craftbukkit-1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf.tar.gz
craftbukkit-1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf.tar.lz
craftbukkit-1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf.tar.xz
craftbukkit-1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf.zip
Copy displayname when cross-world teleporting
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
index adc09118..39aa8e5d 100644
--- a/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
+++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftPlayer.java
@@ -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);