mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-07 05:51:12 +07:00
Hopefully fixed access to uninitialized settings when pausing
This commit is contained in:
parent
aeee5e22eb
commit
da9c65d288
@ -57,8 +57,8 @@ class AndroidLauncher : AndroidApplication() {
|
||||
|
||||
override fun onPause() {
|
||||
if (UncivGame.Companion.isCurrentInitialized()
|
||||
&& UncivGame.Current.settings.multiplayerTurnCheckerEnabled
|
||||
&& UncivGame.Current.isGameInfoInitialized()
|
||||
&& UncivGame.Current.settings.multiplayerTurnCheckerEnabled
|
||||
&& UncivGame.Current.gameInfo.gameParameters.isOnlineMultiplayer) {
|
||||
MultiplayerTurnCheckWorker.startTurnChecker(applicationContext, UncivGame.Current.gameInfo, UncivGame.Current.settings)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user