mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-12 08:49:22 +07:00
Reload images when downloading or removing a mod
This commit is contained in:
@ -191,7 +191,7 @@ open class UncivGame(val isConsoleMode: Boolean = false) : Game(), PlatformSpeci
|
||||
}
|
||||
|
||||
ImageGetter.resetAtlases()
|
||||
ImageGetter.setNewRuleset(ImageGetter.ruleset) // This needs to come after the settings, since we may have default visual mods
|
||||
ImageGetter.reloadImages() // This needs to come after the settings, since we may have default visual mods
|
||||
val imageGetterTilesets = ImageGetter.getAvailableTilesets()
|
||||
val availableTileSets = TileSetCache.getAvailableTilesets(imageGetterTilesets)
|
||||
if (settings.tileSet !in availableTileSets) { // If the configured tileset is no longer available, default back
|
||||
|
Reference in New Issue
Block a user