diff --git a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt index b4ab93ad0d..5e326a9035 100644 --- a/core/src/com/unciv/logic/automation/NextTurnAutomation.kt +++ b/core/src/com/unciv/logic/automation/NextTurnAutomation.kt @@ -216,7 +216,7 @@ class NextTurnAutomation{ && civInfo.cities.none { it.cityConstructions.currentConstruction == "Settler" }) { val bestCity = civInfo.cities.maxBy { it.cityStats.currentCityStats.production }!! - if (bestCity.cityConstructions.builtBuildings.size > 1) // 2 buildings or more, otherwisse focus on self first + if (bestCity.cityConstructions.builtBuildings.size > 1) // 2 buildings or more, otherwise focus on self first bestCity.cityConstructions.currentConstruction = "Settler" } } diff --git a/core/src/com/unciv/models/gamebasics/GameBasics.kt b/core/src/com/unciv/models/gamebasics/GameBasics.kt index e78485c63f..fad6cc55b3 100644 --- a/core/src/com/unciv/models/gamebasics/GameBasics.kt +++ b/core/src/com/unciv/models/gamebasics/GameBasics.kt @@ -28,7 +28,7 @@ object GameBasics { fun getFromJson(tClass: Class, name: String): T { val jsonText = Gdx.files.internal("jsons/$name.json").readString() - return Json().fromJson(tClass, jsonText) + return Json().apply { ignoreUnknownFields=true }.fromJson(tClass, jsonText) } private fun createHashmap(items: Array): LinkedHashMap {