Fixed bug where resource-requiring buildings could be built without the resource

This commit is contained in:
Yair Morgenstern 2018-11-21 16:34:11 +02:00
parent 2ab4e406aa
commit 49603f8852

View File

@ -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