From eb8b5e3bc60380bf472321c18e7b5b1af0e42adf Mon Sep 17 00:00:00 2001 From: Lixfel Date: Tue, 12 Oct 2021 18:07:28 +0200 Subject: [PATCH] Fix tablist size Signed-off-by: Lixfel --- src/de/steamwar/bungeecore/listeners/TablistManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/steamwar/bungeecore/listeners/TablistManager.java b/src/de/steamwar/bungeecore/listeners/TablistManager.java index 506fbe0..b4d6ac1 100644 --- a/src/de/steamwar/bungeecore/listeners/TablistManager.java +++ b/src/de/steamwar/bungeecore/listeners/TablistManager.java @@ -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; }