mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-19 08:47:57 +07:00
Resolved #9531 - only display first 5 missing mods
This commit is contained in:
parent
cf3d5d3fdb
commit
17ad432228
@ -546,7 +546,7 @@ class GameInfo : IsPartOfGameInfoSerialization, HasGameInfoSerializationVersion
|
||||
// Player's fault, so better complain early:
|
||||
val missingMods = (gameParameters.mods + gameParameters.baseRuleset)
|
||||
.filterNot { it in ruleset.mods }
|
||||
.joinToString(limit = 120) { it }
|
||||
.joinToString(limit = 5) { it }
|
||||
if (missingMods.isNotEmpty()) {
|
||||
throw MissingModsException(missingMods)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user