Fix gaining resources twice when it is gained from a city (#12699)

This commit is contained in:
SeventhM 2024-12-22 22:51:34 -08:00 committed by GitHub
parent 4428d25bb5
commit 81a85856cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -220,6 +220,7 @@ class City : IsPartOfGameInfoSerialization, INamed {
if (!stat.isStockpiled) return
if (!stat.isCityWide) civ.gainStockpiledResource(stat.name, amount)
else { /*TODO*/ }
return
}
when (stat) {
Stat.Production -> cityConstructions.addProductionPoints(amount)