Skip to content

Commit 9c42860

Browse files
committed
Fix Lobby number being wrong
1 parent 788af37 commit 9c42860

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

type.lobby/src/main/java/net/swofty/type/lobby/gui/GUILobbySelector.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void run(InventoryPreClickEvent e, HypixelPlayer p) {
105105
for (int i = 0; i < lobbies.size() && i < 18; i++) {
106106
UnderstandableProxyServer lobby = lobbies.get(i);
107107
boolean isCurrentServer = lobby.uuid().equals(currentServer);
108-
int lobbyNumber = extractLobbyNumber(lobby.shortName());
108+
int lobbyNumber = i + 1;
109109

110110
set(new GUIClickableItem(i) {
111111
@Override
@@ -120,7 +120,7 @@ public ItemStack.Builder getItem(HypixelPlayer p) {
120120
return ItemStackCreator.getStack(
121121
titleColor + lobbyName + " #" + lobbyNumber,
122122
material,
123-
Math.max(1, lobbyNumber),
123+
lobbyNumber,
124124
"§7Players: " + players + "/" + max,
125125
"",
126126
statusLine

0 commit comments

Comments
 (0)