Fixed two empty mods checkbox in game options (#2837)

This commit is contained in:
Alexander Korolyov 2020-07-12 15:10:52 +02:00 committed by GitHub
parent c51879cc5f
commit 494e8eacc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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