Don't update city stats when simulating improvement changes to see new stats!

This commit is contained in:
Yair Morgenstern 2024-03-09 23:38:16 +02:00
parent 1bc3c4de04
commit 9a70ad631e

View File

@ -232,12 +232,10 @@ class TileInfoImprovementFunctions(val tile: Tile) {
triggerImprovementUniques(improvementObject, civToActivateBroaderEffects, unit)
val city = tile.owningCity
if (city != null) {
if (civToActivateBroaderEffects != null && city != null) {
city.cityStats.update()
if (civToActivateBroaderEffects != null) {
city.civ.cache.updateCivResources()
city.reassignPopulationDeferred()
}
city.civ.cache.updateCivResources()
city.reassignPopulationDeferred()
}
}