Archiviert
1
0

Fix tablist size

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2021-10-12 18:07:28 +02:00
Ursprung 1c3208934d
Commit eb8b5e3bc6

Datei anzeigen

@ -199,7 +199,7 @@ public class TablistManager extends BasicListener {
public int slimSize(ProxiedPlayer viewer) {
int size = subTablists.stream().mapToInt(tPart -> viewer == null ? tPart.size() : tPart.slimSize(viewer)).sum();
if(withHeaders)
size += subTablists.size() + Math.min(subTablists.size() - 1, 0);
size += subTablists.size() * 2;
return size;
}