mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07: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…
Reference in New Issue
Block a user