3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-09-29 06:30:16 +02:00

Fix TabList NPE

Dieser Commit ist enthalten in:
pkt77 2023-12-06 11:22:01 -05:00 committet von Shane Freeder
Ursprung efcfeb3e53
Commit eb03feebd9

Datei anzeigen

@ -252,7 +252,8 @@ public class VelocityTabList implements InternalTabList {
currentEntry.setLatencyWithoutUpdate(entry.getLatency());
}
if (actions.contains(UpsertPlayerInfo.Action.UPDATE_DISPLAY_NAME)) {
currentEntry.setDisplayNameWithoutUpdate(entry.getDisplayName().getComponent());
currentEntry.setDisplayNameWithoutUpdate(entry.getDisplayName() != null
? entry.getDisplayName().getComponent() : null);
}
if (actions.contains(UpsertPlayerInfo.Action.INITIALIZE_CHAT)) {
currentEntry.setChatSession(entry.getChatSession());
@ -268,4 +269,4 @@ public class VelocityTabList implements InternalTabList {
this.entries.remove(uuid);
}
}
}
}