geforkt von SteamWar/BungeeCore
Update TablistManager
Dieser Commit ist enthalten in:
Ursprung
adbf041135
Commit
02883f2bea
@ -203,19 +203,14 @@ public class TablistManager extends BasicListener {
|
|||||||
boolean removeFooter = i == subTablists.size() - 1;
|
boolean removeFooter = i == subTablists.size() - 1;
|
||||||
if (viewer == null) {
|
if (viewer == null) {
|
||||||
size += tablistPart.size();
|
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 {
|
} else {
|
||||||
int slimSize = tablistPart.slimSize(viewer);
|
int slimSize = tablistPart.slimSize(viewer);
|
||||||
if (slimSize == 0) {
|
|
||||||
if (withHeaders) size++; // This increment is just for the header
|
|
||||||
} else {
|
|
||||||
size += slimSize;
|
size += slimSize;
|
||||||
|
if (slimSize == 0) removeFooter = true;
|
||||||
|
}
|
||||||
if (withHeaders) size += 2; // The 2 is for the header and footer
|
if (withHeaders) size += 2; // The 2 is for the header and footer
|
||||||
if (removeFooter) size--; // The last one has no footer
|
if (removeFooter) size--; // The last one has no footer
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren