This commit is contained in:
Anthony Calosa
2023-06-28 12:01:00 +08:00
parent cc4342b356
commit dd1d5d09fe

View File

@@ -151,10 +151,7 @@ public class DuelScene extends ForgeScene {
} }
Runnable endRunnable = null; Runnable endRunnable = null;
void afterGameEnd(String enemyName, boolean winner) { void afterGameEnd(String enemyName, boolean winner) {
if (winner) Forge.restrictAdvMenus = winner;
Forge.restrictAdvMenus = true;
else
Forge.restrictAdvMenus = false;
endRunnable = () -> Gdx.app.postRunnable(()-> { endRunnable = () -> Gdx.app.postRunnable(()-> {
if (GameScene.instance().isNotInWorldMap()) { if (GameScene.instance().isNotInWorldMap()) {
SoundSystem.instance.pause(); SoundSystem.instance.pause();