Correct the return value of getPlayerListName

This commit is contained in:
Thinkofdeath 2014-11-30 10:30:32 +00:00
parent 73f4bc3434
commit 20207a0124

View file

@ -176,7 +176,7 @@ public class CraftPlayer extends CraftHumanEntity implements Player {
@Override
public String getPlayerListName() {
return CraftChatMessage.fromComponent(getHandle().listName);
return getHandle().listName == null ? getName() : CraftChatMessage.fromComponent(getHandle().listName);
}
@Override