mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
Fix setloadingaMatch prematurely, if the startgame is null there must be an error/showdialog happened.
This commit is contained in:
@@ -272,13 +272,13 @@ public abstract class LobbyScreen extends LaunchScreen implements ILobbyView {
|
||||
updateDeck(i);//TODO: Investigate why AI names cannot be overriden?
|
||||
updateName(i, getPlayerName(i));
|
||||
}
|
||||
//set this so we cant get any multi/rapid tap on start button
|
||||
Forge.setLoadingaMatch(true);
|
||||
FThreads.invokeInBackgroundThread(new Runnable() { //must call startGame in background thread in case there are alerts
|
||||
@Override
|
||||
public void run() {
|
||||
final Runnable startGame = lobby.startGame();
|
||||
if (startGame != null) {
|
||||
//set this so we cant get any multi/rapid tap on start button
|
||||
Forge.setLoadingaMatch(true);
|
||||
FThreads.invokeInEdtLater(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user