SteamWar/BungeeCore
Archiviert
13
2

Fix TablistManager #283

Zusammengeführt
Lixfel hat 5 Commits von FixTablist nach master 2021-12-22 17:09:59 +01:00 zusammengeführt
Nur Änderungen aus Commit 02883f2bea werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -203,18 +203,13 @@ public class TablistManager extends BasicListener {
boolean removeFooter = i == subTablists.size() - 1;
if (viewer == null) {
size += tablistPart.size();
if (withHeaders) size += 2; // The 2 is for the header and footer
if (removeFooter) size--; // The last one has no footer
} else {
int slimSize = tablistPart.slimSize(viewer);
if (slimSize == 0) {
if (withHeaders) size++; // This increment is just for the header
} else {
size += slimSize;
if (withHeaders) size += 2; // The 2 is for the header and footer
if (removeFooter) size--; // The last one has no footer
}
size += slimSize;
if (slimSize == 0) removeFooter = true;
}
if (withHeaders) size += 2; // The 2 is for the header and footer
if (removeFooter) size--; // The last one has no footer
}
return size;
}