mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-13 00:04:38 +07:00
Resolved #11339 - Fixed ruleset-dependant building filter activating *when initializing ruleset*
This commit is contained in:
parent
cf0ea815d4
commit
62ce65ec1a
@ -517,6 +517,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction {
|
||||
replaces -> true
|
||||
else -> {
|
||||
if (uniques.contains(filter)) return true
|
||||
if (::ruleset.isInitialized) // False when loading ruleset and checking buildingsToRemove
|
||||
for (requiredTech: String in requiredTechs())
|
||||
if (ruleset.technologies[requiredTech]?.matchesFilter(filter) == true) return true
|
||||
val stat = Stat.safeValueOf(filter)
|
||||
|
Loading…
Reference in New Issue
Block a user