From 494e8eacc09b2e3d9af9eb0fd5def678aa04c5cb Mon Sep 17 00:00:00 2001 From: Alexander Korolyov <49795502+alkorolyov@users.noreply.github.com> Date: Sun, 12 Jul 2020 15:10:52 +0200 Subject: [PATCH] Fixed two empty mods checkbox in game options (#2837) --- core/src/com/unciv/ui/newgamescreen/GameOptionsTable.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/ui/newgamescreen/GameOptionsTable.kt b/core/src/com/unciv/ui/newgamescreen/GameOptionsTable.kt index 5c87c2755e..4da740aba7 100644 --- a/core/src/com/unciv/ui/newgamescreen/GameOptionsTable.kt +++ b/core/src/com/unciv/ui/newgamescreen/GameOptionsTable.kt @@ -167,7 +167,7 @@ class GameOptionsTable(previousScreen: IPreviousScreen, val updatePlayerPickerTa } fun Table.addModCheckboxes() { - val modRulesets = RulesetCache.filter { it.key != "" }.values + val modRulesets = RulesetCache.values.filter { it.name != "" } if (modRulesets.isEmpty()) return