Skip to content

Commit

Permalink
Fix Maps displaying twice on game start
Browse files Browse the repository at this point in the history
The GameUpdateEvent is being fired a little too much at the moment, probably broke stats as well. But I don't have time to fix that now.
The problem is that you can be sent from the same game, to the same game, to the same server. And there isn't really a way for me to check it. Maybe I should use the join message? But then stuff breaks for nicks, ugh... Will have to think about it
  • Loading branch information
Fesaa committed Aug 25, 2024
1 parent c65d6f2 commit ad27e8c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public void onGameUpdate(GameUpdateEvent e) {
return;
}

if (e.isPreLobby()) {
if (e.isPreLobby() || e.isSwitch()) {
return;
}

Expand Down

0 comments on commit ad27e8c

Please sign in to comment.