mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 14:24:43 -04:00
Fixed bug where resource-requiring buildings could be built without the resource
This commit is contained in:
parent
2ab4e406aa
commit
49603f8852
@ -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
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user