From f703f2fbdea028768761991e7af13f0066a1ba61 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Thu, 5 May 2022 18:43:28 +0300 Subject: [PATCH] Do not resort building uniques when displaying in Civilopedia - leave as the json order to allow modders to determine order themselves --- core/src/com/unciv/models/ruleset/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Building.kt b/core/src/com/unciv/models/ruleset/Building.kt index bd559812a4..83c5e6455a 100644 --- a/core/src/com/unciv/models/ruleset/Building.kt +++ b/core/src/com/unciv/models/ruleset/Building.kt @@ -258,7 +258,7 @@ class Building : RulesetStatsObject(), INonPerpetualConstruction { if (replacementTextForUniques.isNotEmpty()) { textList += FormattedLine(replacementTextForUniques) } else if (uniques.isNotEmpty()) { - for (unique in uniqueObjects.sortedBy { it.text }) { + for (unique in uniqueObjects) { if (unique.hasFlag(UniqueFlag.HiddenToUsers)) continue if (unique.type == UniqueType.ConsumesResources) continue // already shown from getResourceRequirements textList += FormattedLine(unique)