From 49603f885277b18bcad664a6ef3da29942e51895 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 21 Nov 2018 16:34:11 +0200 Subject: [PATCH] Fixed bug where resource-requiring buildings could be built without the resource --- core/src/com/unciv/models/gamebasics/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/gamebasics/Building.kt b/core/src/com/unciv/models/gamebasics/Building.kt index ea4b700b6a..56289a5124 100644 --- a/core/src/com/unciv/models/gamebasics/Building.kt +++ b/core/src/com/unciv/models/gamebasics/Building.kt @@ -184,7 +184,7 @@ class Building : NamedStats(), IConstruction{ if("Can only be built in coastal cities" in uniques && construction.cityInfo.getCenterTile().neighbors.none { it.baseTerrain=="Coast" }) return false - if (requiredResource != null && civInfo.hasResource(requiredResource!!)) + if (requiredResource != null && !civInfo.hasResource(requiredResource!!)) return false