mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Handle mods adding/removing eras
This commit is contained in:
parent
261e1047ff
commit
d88c7be987
@ -37,6 +37,12 @@ object BackwardCompatibility {
|
||||
handleMissingReferencesForEachCity()
|
||||
|
||||
removeTechAndPolicies()
|
||||
updateMissingStartingEra()
|
||||
}
|
||||
|
||||
private fun GameInfo.updateMissingStartingEra() {
|
||||
if (gameParameters.startingEra in ruleset.eras) return
|
||||
gameParameters.startingEra = ruleset.eras.keys.first()
|
||||
}
|
||||
|
||||
fun GameInfo.migrateGreatGeneralPools() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user