mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-23 03:23:17 -04:00
Resolved #8543 - fixed crash switching to tileset immediately after downloading tileset mod
This commit is contained in:
parent
3859a26732
commit
866a92a483
@ -18,6 +18,7 @@ import com.unciv.json.json
|
|||||||
import com.unciv.models.ruleset.ModOptions
|
import com.unciv.models.ruleset.ModOptions
|
||||||
import com.unciv.models.ruleset.Ruleset
|
import com.unciv.models.ruleset.Ruleset
|
||||||
import com.unciv.models.ruleset.RulesetCache
|
import com.unciv.models.ruleset.RulesetCache
|
||||||
|
import com.unciv.models.tilesets.TileSetCache
|
||||||
import com.unciv.models.translations.tr
|
import com.unciv.models.translations.tr
|
||||||
import com.unciv.ui.images.ImageGetter
|
import com.unciv.ui.images.ImageGetter
|
||||||
import com.unciv.ui.pickerscreens.ModManagementOptions.SortType
|
import com.unciv.ui.pickerscreens.ModManagementOptions.SortType
|
||||||
@ -440,6 +441,7 @@ class ModManagementScreen(
|
|||||||
launchOnGLThread {
|
launchOnGLThread {
|
||||||
ToastPopup("[${repo.name}] Downloaded!", this@ModManagementScreen)
|
ToastPopup("[${repo.name}] Downloaded!", this@ModManagementScreen)
|
||||||
RulesetCache.loadRulesets()
|
RulesetCache.loadRulesets()
|
||||||
|
TileSetCache.loadTileSetConfigs(false)
|
||||||
UncivGame.Current.translations.tryReadTranslationForCurrentLanguage()
|
UncivGame.Current.translations.tryReadTranslationForCurrentLanguage()
|
||||||
RulesetCache[repo.name]?.let {
|
RulesetCache[repo.name]?.let {
|
||||||
installedModInfo[repo.name] = ModUIData(it)
|
installedModInfo[repo.name] = ModUIData(it)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user