mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-30 14:48:56 +07:00
Make UncivGame.isInitialized inaccessible outside of the class hierarchy (#9651)
* Make UncivGame.isInitialized inaccessible outside of the class hierarchy * Fix JvmName
This commit is contained in:
@ -78,4 +78,5 @@ class AndroidGame(private val activity: Activity) : UncivGame() {
|
||||
}
|
||||
}
|
||||
|
||||
fun isInitializedProxy() = super.isInitialized
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ open class AndroidLauncher : AndroidApplication() {
|
||||
|
||||
override fun onPause() {
|
||||
val game = this.game!!
|
||||
if (game.isInitialized
|
||||
if (game.isInitializedProxy()
|
||||
&& game.gameInfo != null
|
||||
&& game.settings.multiplayer.turnCheckerEnabled
|
||||
&& game.files.getMultiplayerSaves().any()
|
||||
|
Reference in New Issue
Block a user