diff --git a/core/src/com/unciv/logic/map/TileInfo.kt b/core/src/com/unciv/logic/map/TileInfo.kt index 8af960daa5..fa1e7732b5 100644 --- a/core/src/com/unciv/logic/map/TileInfo.kt +++ b/core/src/com/unciv/logic/map/TileInfo.kt @@ -292,7 +292,9 @@ open class TileInfo { fun hasImprovementInProgress() = improvementInProgress!=null - fun isCoastalTile() = neighbors.any { it.baseTerrain==Constants.coast } + @delegate:Transient + private val _isCoastalTile: Boolean by lazy { neighbors.any { it.baseTerrain==Constants.coast } } + fun isCoastalTile() = _isCoastalTile fun hasViewableResource(civInfo: CivilizationInfo): Boolean = resource != null && (getTileResource().revealedBy == null || civInfo.tech.isResearched(getTileResource().revealedBy!!))