mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-01 20:50:41 +01:00
Correct the return value of getPlayerListName
This commit is contained in:
parent
73f4bc3434
commit
20207a0124
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue