mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08: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?
|
updateDeck(i);//TODO: Investigate why AI names cannot be overriden?
|
||||||
updateName(i, getPlayerName(i));
|
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
|
FThreads.invokeInBackgroundThread(new Runnable() { //must call startGame in background thread in case there are alerts
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
final Runnable startGame = lobby.startGame();
|
final Runnable startGame = lobby.startGame();
|
||||||
if (startGame != null) {
|
if (startGame != null) {
|
||||||
|
//set this so we cant get any multi/rapid tap on start button
|
||||||
|
Forge.setLoadingaMatch(true);
|
||||||
FThreads.invokeInEdtLater(new Runnable() {
|
FThreads.invokeInEdtLater(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
|
|||||||
Reference in New Issue
Block a user