diff --git a/buildSrc/src/main/kotlin/BuildConfig.kt b/buildSrc/src/main/kotlin/BuildConfig.kt index 26eb62c46b..af786277d5 100644 --- a/buildSrc/src/main/kotlin/BuildConfig.kt +++ b/buildSrc/src/main/kotlin/BuildConfig.kt @@ -3,8 +3,8 @@ package com.unciv.build object BuildConfig { const val kotlinVersion = "1.3.71" const val appName = "Unciv" - const val appCodeNumber = 479 - const val appVersion = "3.11.0" + const val appCodeNumber = 480 + const val appVersion = "3.11.0-patch1" const val gdxVersion = "1.9.10" const val roboVMVersion = "2.3.1" diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 5b82498834..1ae0e26316 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -298,7 +298,7 @@ open class TileInfo { /** Without regards to what civinfo it is, a lot of the checks are ust for the improvement on the tile. * Doubles as a check for the map editor. */ - fun canImprovementBeBuiltHere(improvement: TileImprovement, resourceIsVisible:Boolean = true): Boolean { + fun canImprovementBeBuiltHere(improvement: TileImprovement, resourceIsVisible:Boolean = resource!=null): Boolean { val topTerrain = getLastTerrain() return when { diff --git a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt index b68969ed8e..a2f35ec8d7 100644 --- a/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt +++ b/core/src/com/unciv/ui/cityscreen/CityInfoTable.kt @@ -152,7 +152,8 @@ class CityInfoTable(private val cityScreen: CityScreen) : Table(CameraStageBaseS specialistIcons.row().size(20f).pad(5f) for (stat in building.specialistSlots!!.toHashMap()) { if (stat.value == 0f) continue - val specialist = cityInfo.getRuleset().specialists[cityInfo.population.specialistNameByStat(stat.key)]!! + val specialist = cityInfo.getRuleset().specialists[cityInfo.population.specialistNameByStat(stat.key)] + if (specialist == null) continue // probably a mod that doesn't have the specialist defined yet for (i in 0 until stat.value.toInt()) specialistIcons.add(ImageGetter.getSpecialistIcon(specialist.colorObject)).size(20f) }