mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Handle mods removing techs - remove from techsToResearch list
This commit is contained in:
parent
d88c7be987
commit
9346f6c527
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user