Natural wonders spawned before rivers, so we don't retroactively get rivers on coast tiles

Other small improvements for catching and avoiding crashes
This commit is contained in:
Yair Morgenstern
2020-06-03 18:44:03 +03:00
parent bb9404152f
commit 3e31be1801
7 changed files with 9 additions and 5 deletions

View File

@ -18,7 +18,8 @@ class AndroidLauncher : AndroidApplication() {
// Only allow mods on KK+, to avoid READ_EXTERNAL_STORAGE permission earlier versions need
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
copyMods()
GameSaver.externalFilesDirForAndroid = getExternalFilesDir(null)!!.path
val externalfilesDir = getExternalFilesDir(null)
if(externalfilesDir!=null) GameSaver.externalFilesDirForAndroid = externalfilesDir.path
}
val config = AndroidApplicationConfiguration().apply { useImmersiveMode = true }