mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
save options even if winlose overlay is disabled
This commit is contained in:
@@ -139,9 +139,11 @@ public class DuelScene extends ForgeScene {
|
||||
public void run(Integer result) {
|
||||
if (result == 0) {
|
||||
afterGameEnd(enemyName, finalWinner);
|
||||
if (Config.instance().getSettingData().disableWinLose)
|
||||
if (Config.instance().getSettingData().disableWinLose) {
|
||||
MatchController.writeMatchPreferences();
|
||||
exitDuelScene();
|
||||
}
|
||||
}
|
||||
fb.dispose();
|
||||
}
|
||||
}));
|
||||
|
||||
@@ -313,6 +313,7 @@ public class MatchController extends AbstractGuiGame {
|
||||
public void finishGame() {
|
||||
if (Forge.isMobileAdventureMode) {
|
||||
if (Config.instance().getSettingData().disableWinLose) {
|
||||
MatchController.writeMatchPreferences();
|
||||
if (getGameView().isMatchOver()){
|
||||
Forge.setCursor(null, "0");
|
||||
if (!DuelScene.instance().hasCallbackExit()){
|
||||
|
||||
Reference in New Issue
Block a user