Attempt at fixing spectator page
This commit is contained in:
parent
53f9a051c5
commit
2c09fd969b
@ -151,9 +151,8 @@ public class SpectatorPage extends
|
||||
|
||||
int rowsNeeded = (int) Math.ceil(teamPlayers.size() / 8.0);
|
||||
|
||||
_buttons = Arrays.copyOf(_buttons, _buttons.length
|
||||
+ (rowsNeeded * 9));
|
||||
_items = Arrays.copyOf(_items, _items.length + (rowsNeeded * 9) + rowsNeeded);
|
||||
_buttons = Arrays.copyOf(_buttons, _buttons.length + (rowsNeeded * 9));
|
||||
_items = Arrays.copyOf(_items, _items.length + (rowsNeeded * 9));
|
||||
|
||||
for (int row = 0; row < rowsNeeded; row++)
|
||||
{
|
||||
@ -176,6 +175,9 @@ public class SpectatorPage extends
|
||||
if (rowsNeeded == 1 && teamList.size() < 4 && playerCount <= 26)
|
||||
{
|
||||
currentRow += 2;
|
||||
|
||||
_buttons = Arrays.copyOf(_buttons, _buttons.length + 9);
|
||||
_items = Arrays.copyOf(_items, _items.length + 9);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user