Handle mods removing techs - remove from techsToResearch list

This commit is contained in:
yairm210 2025-08-25 11:33:14 +03:00
parent d88c7be987
commit 9346f6c527

View File

@ -128,6 +128,11 @@ object BackwardCompatibility {
for (tech in civInfo.tech.techsResearched.toList())
if (!ruleset.technologies.containsKey(tech))
civInfo.tech.techsResearched.remove(tech)
for (tech in civInfo.tech.techsToResearch.toList())
if (!ruleset.technologies.containsKey(tech))
civInfo.tech.techsToResearch.remove(tech)
for (policy in civInfo.policies.adoptedPolicies.toList())
if (!ruleset.policies.containsKey(policy))
civInfo.policies.adoptedPolicies.remove(policy)