mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 02:38:02 +00:00
simplify
This commit is contained in:
@@ -151,10 +151,7 @@ public class DuelScene extends ForgeScene {
|
||||
}
|
||||
Runnable endRunnable = null;
|
||||
void afterGameEnd(String enemyName, boolean winner) {
|
||||
if (winner)
|
||||
Forge.restrictAdvMenus = true;
|
||||
else
|
||||
Forge.restrictAdvMenus = false;
|
||||
Forge.restrictAdvMenus = winner;
|
||||
endRunnable = () -> Gdx.app.postRunnable(()-> {
|
||||
if (GameScene.instance().isNotInWorldMap()) {
|
||||
SoundSystem.instance.pause();
|
||||
|
||||
Reference in New Issue
Block a user