mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
May as well set name to empty component
This commit is contained in:
parent
bc16fb9cc3
commit
ab458f4de9
@ -1217,9 +1217,10 @@ public class NMSImpl implements NMSBridge {
|
||||
boolean list = entity instanceof NPCHolder
|
||||
? !((NPCHolder) entity).getNPC().data().get("removefromtablist", Setting.DISABLE_TABLIST.asBoolean())
|
||||
: false;
|
||||
|
||||
ClientboundPlayerInfoUpdatePacket.Entry entry = new ClientboundPlayerInfoUpdatePacket.Entry(entity.getUUID(),
|
||||
entity.getGameProfile(), list, entity.latency, entity.gameMode.getGameModeForPlayer(),
|
||||
entity.getTabListDisplayName(),
|
||||
!list ? Component.empty() : entity.getTabListDisplayName(),
|
||||
entity.getChatSession() == null ? null : entity.getChatSession().asData());
|
||||
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user