Commit 91abbcd3 authored by Anthony Calosa's avatar Anthony Calosa

Fix setloadingaMatch prematurely, if the startgame is null there must be an...

Fix setloadingaMatch prematurely, if the startgame is null there must be an error/showdialog happened.
parent 78cee77b
......@@ -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() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment