prevent crash on Android 11 and below

Completablefuture -> completeOnTimeout
This commit is contained in:
Anthony Calosa
2024-12-02 09:44:29 +08:00
parent 23d0868e0a
commit e8a6d4ce92
7 changed files with 29 additions and 6 deletions

View File

@@ -48,6 +48,7 @@ public class SimulationTest {
game.setAge(GameStage.Play);
game.EXPERIMENTAL_RESTORE_SNAPSHOT = false;
game.AI_TIMEOUT = FModel.getPreferences().getPrefInt(FPref.MATCH_AI_TIMEOUT);
game.AI_CAN_USE_TIMEOUT = true; //Only Android is restricted according to API Level
return game;
}