mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 04:43:05 -04:00
Allow loading games with natural wonders that have been removed from mods
This commit is contained in:
parent
ed16fb9a3f
commit
a5a2157bc6
@ -862,6 +862,8 @@ class Tile : IsPartOfGameInfoSerialization, Json.Serializable {
|
||||
improvement = null
|
||||
if (improvementQueue.any { it.improvement !in ruleset.tileImprovements })
|
||||
improvementQueue.clear() // Just get rid of everything, all bets are off
|
||||
if (naturalWonder != null && naturalWonder !in ruleset.terrains)
|
||||
naturalWonder = null
|
||||
}
|
||||
|
||||
/** If the unit isn't in the ruleset we can't even know what type of unit this is! So check each place
|
||||
|
Loading…
x
Reference in New Issue
Block a user