diff options
author | Erik Broes <erikbroes@grum.nl> | 2011-03-13 12:52:01 +0100 |
---|---|---|
committer | Erik Broes <erikbroes@grum.nl> | 2011-03-13 12:52:01 +0100 |
commit | 6043797ce0b23c9bf7f92efd31746c1cd758b2be (patch) | |
tree | 4dc2a605e264db4fad1df6a8e9e0795490451683 /src/main/java/net/minecraft/server | |
parent | 1be1b5ab4d713ce1a7807465e7fc0a4079ac85bd (diff) | |
download | craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.gz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.lz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.tar.xz craftbukkit-6043797ce0b23c9bf7f92efd31746c1cd758b2be.zip |
Fix getDisplayName getting lost when getBukkitEntity is called
Diffstat (limited to 'src/main/java/net/minecraft/server')
-rw-r--r-- | src/main/java/net/minecraft/server/EntityPlayer.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java index db9b9540..1c532764 100644 --- a/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/src/main/java/net/minecraft/server/EntityPlayer.java @@ -50,8 +50,14 @@ public class EntityPlayer extends EntityHuman implements ICrafting { this.name = s; this.c = iteminworldmanager; this.height = 0.0F; + + // CraftBukkit start + this.displayName = this.name; } + public String displayName; + // CraftBukkit end + public void l() { this.activeContainer.a((ICrafting) this); } |