Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
cc6860b0a5
Commit
c30542970e
@ -66,7 +66,7 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
}
|
||||
|
||||
public void update(TablistPart global, int seconds) {
|
||||
if (player.getServer() == null)
|
||||
if (connection == null)
|
||||
return;
|
||||
|
||||
player.unsafe().sendPacket(new PlayerListHeaderFooter(
|
||||
@ -147,8 +147,8 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
||||
public void onServerSwitch() {
|
||||
connection = (ServerConnection) player.getServer();
|
||||
synchronized (directTabItems) {
|
||||
directTabItems.clear();
|
||||
sendNpcPacket(npcs.stream().map(npc -> directTabItems.get(npc).getUsername()).collect(Collectors.toList()), true);
|
||||
directTabItems.clear();
|
||||
npcs.clear();
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren