From 08c8bcf3831fe2b3d9a553fb640b70888f7e21e8 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Tue, 8 Aug 2023 20:25:12 +0300 Subject: [PATCH] Removed double lines between handleImprovementCompletion and changeImprovement --- .../com/unciv/models/ruleset/tile/TileImprovement.kt | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt b/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt index 195775038f..0af9d52426 100644 --- a/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt +++ b/core/src/com/unciv/models/ruleset/tile/TileImprovement.kt @@ -76,20 +76,9 @@ class TileImprovement : RulesetStatsObject() { /** ONLY to be called if the improvement was ACTUALLY built, not for simulating builds! */ fun handleImprovementCompletion(builder: MapUnit) { val tile = builder.getTile() - if (hasUnique(UniqueType.TakesOverAdjacentTiles)) UnitActions.takeOverTilesAround(builder.civ, builder.currentTile) - if (tile.resource != null) { - val city = builder.getTile().getCity() - if (city != null) { - city.updateCitizens = true - city.cityStats.update() - city.civ.cache.updateCivResources() - } - } - - tile.owningCity?.reassignPopulationDeferred() }