Don't use tileRemovals for ruleset validation check, since we edit the ruleset as we go in the new game screen, so the tileRemovals is not accurate once mods are changed

This commit is contained in:
Yair Morgenstern 2024-04-24 08:02:07 +03:00
parent 5b73fcd419
commit 89fc75b3f5

View File

@ -416,7 +416,7 @@ class RulesetValidator(val ruleset: Ruleset) {
if (improvement.terrainsCanBeBuiltOn.isEmpty()
&& !improvement.hasUnique(UniqueType.CanOnlyImproveResource)
&& !improvement.hasUnique(UniqueType.Unbuildable)
&& improvement !in ruleset.tileRemovals
&& !improvement.name.startsWith(Constants.remove)
&& improvement.name !in RoadStatus.values().map { it.removeAction }
&& improvement.name != Constants.cancelImprovementOrder
) {