mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 07:16:54 +07:00
Fix Petra and Garden not allowed in some cases (#6245)
This commit is contained in:
parent
651dcff581
commit
9870003e33
@ -493,7 +493,7 @@ open class TileInfo {
|
||||
// Rivers are odd, as they aren't technically part of any specific tile but still count towards adjacency
|
||||
if (terrainFilter == "River") return isAdjacentToRiver()
|
||||
if (terrainFilter == Constants.freshWater && isAdjacentToRiver()) return true
|
||||
return neighbors.any { neighbor -> neighbor.matchesFilter(terrainFilter) }
|
||||
return (neighbors + this).any { neighbor -> neighbor.matchesFilter(terrainFilter) }
|
||||
}
|
||||
|
||||
/** Without regards to what CivInfo it is, a lot of the checks are just for the improvement on the tile.
|
||||
|
Loading…
Reference in New Issue
Block a user