diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-25 21:22:57 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-25 21:22:57 +0100 |
commit | 1eb2f75f53ca6db4350f3a7a12a8376c64cbb7cf (patch) | |
tree | db89010ce8a1982258242ee44b8b87574886de4a /src/main/java | |
parent | 9162a654c44801ee40e47a7dad94cc7a7c95afed (diff) | |
download | craftbukkit-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.java | 1 |
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); |