Skip to content

Commit

Permalink
Fix waiting lobby sidebars not being initialized with content
Browse files Browse the repository at this point in the history
  • Loading branch information
haykam821 committed Aug 28, 2024
1 parent 792eace commit 0ba5254
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ public static GameWaitingLobby addTo(GameActivity activity, PlayerConfig playerC
}

lobby.sidebar.setTitle(title);
lobby.updateSidebar();
lobby.sidebar.show();

return lobby;
Expand Down Expand Up @@ -135,7 +136,7 @@ private void onTick() {
if (time % 20 == 0) {
this.updateCountdown();
this.tickCountdownBar();
this.tickSidebar();
this.updateSidebar();
this.tickCountdownSound();
}

Expand Down Expand Up @@ -252,7 +253,7 @@ private void tickCountdownBar() {
}
}

private void tickSidebar() {
private void updateSidebar() {
this.sidebar.set((b) -> {
b.add(PADDING_LINE);
if (this.countdownStart != -1) {
Expand Down

0 comments on commit 0ba5254

Please sign in to comment.