Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
0c509bdfdc
Commit
5fd0dcae65
@ -238,11 +238,15 @@ public class Tablist extends MessageToMessageDecoder<PacketWrapper> {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} else if(packet instanceof PlayerListItemRemove) {
|
} else if(packet instanceof PlayerListItemRemove) {
|
||||||
|
List<String> names = new ArrayList<>();
|
||||||
for(UUID uuid : ((PlayerListItemRemove) packet).getUuids()) {
|
for(UUID uuid : ((PlayerListItemRemove) packet).getUuids()) {
|
||||||
synchronized (directTabItems) {
|
synchronized (directTabItems) {
|
||||||
directTabItems.remove(uuid);
|
PlayerListItem.Item directItem = directTabItems.remove(uuid);
|
||||||
|
if(npcs.remove(uuid))
|
||||||
|
names.add(directItem.getUsername());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
sendNpcPacket(names, true);
|
||||||
} else if(packet instanceof PlayerListItemUpdate) {
|
} else if(packet instanceof PlayerListItemUpdate) {
|
||||||
PlayerListItemUpdate list = (PlayerListItemUpdate) packet;
|
PlayerListItemUpdate list = (PlayerListItemUpdate) packet;
|
||||||
EnumSet<PlayerListItemUpdate.Action> actions = list.getActions();
|
EnumSet<PlayerListItemUpdate.Action> actions = list.getActions();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren