Resolved #9531 - only display first 5 missing mods

This commit is contained in:
Yair Morgenstern 2023-06-07 09:58:32 +03:00
parent cf3d5d3fdb
commit 17ad432228

View File

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