mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 23:40:01 +07:00
Recreate map editor screen when changing ruleset to update all the editing tools
This commit is contained in:
@ -170,9 +170,11 @@ class MapEditorMenuPopup(var mapEditorScreen: MapEditorScreen): Popup(mapEditorS
|
||||
ruleset.modOptions = newRuleset.modOptions
|
||||
|
||||
mapEditorScreen.tileMap.removeMissingTerrainModReferences(ruleset)
|
||||
mapEditorScreen.mapHolder.updateTileGroups()
|
||||
|
||||
ImageGetter.setNewRuleset(ruleset)
|
||||
|
||||
// Recreate screen, since the improvementss, nations etc. could be outdated
|
||||
mapEditorScreen.game.setScreen(MapEditorScreen(mapEditorScreen.tileMap))
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user