From ac5e51dbeacd94502b6f45ede6d3dc7bd65f2066 Mon Sep 17 00:00:00 2001 From: SeventhM <127357473+SeventhM@users.noreply.github.com> Date: Mon, 4 Sep 2023 04:37:06 -0700 Subject: [PATCH] Fix cities getting the resource list of other cities (#10041) --- core/src/com/unciv/logic/city/City.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/City.kt b/core/src/com/unciv/logic/city/City.kt index e6d1aa18eb..f33c62d172 100644 --- a/core/src/com/unciv/logic/city/City.kt +++ b/core/src/com/unciv/logic/city/City.kt @@ -264,7 +264,7 @@ class City : IsPartOfGameInfoSerialization { } private fun getCityResourcesFromUniqueBuildings(cityResources: ResourceSupplyList, resourceModifer: HashMap) { - for (unique in getMatchingUniques(UniqueType.ProvidesResources, StateForConditionals(civ, this))) { // E.G "Provides [1] [Iron]" + for (unique in cityConstructions.builtBuildingUniqueMap.getMatchingUniques(UniqueType.ProvidesResources, StateForConditionals(civ, this))) { // E.G "Provides [1] [Iron]" val resource = getRuleset().tileResources[unique.params[1]] ?: continue cityResources.add(