From 3785dcc5329e36c8ca98f6f4dae0ed663e1cf94f Mon Sep 17 00:00:00 2001 From: yairm210 Date: Mon, 15 Sep 2025 17:15:50 +0300 Subject: [PATCH] Fix settings load dependency on UncivGame.Current --- .../com/unciv/ui/components/ISortableGridContentProvider.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/src/com/unciv/ui/components/ISortableGridContentProvider.kt b/core/src/com/unciv/ui/components/ISortableGridContentProvider.kt index beea41e250..59d938d4d7 100644 --- a/core/src/com/unciv/ui/components/ISortableGridContentProvider.kt +++ b/core/src/com/unciv/ui/components/ISortableGridContentProvider.kt @@ -81,8 +81,7 @@ interface ISortableGridContentProvider { items.sumOf { getEntryValue(it) }.toCenteredLabel() companion object { - @JvmStatic - val collator = UncivGame.Current.settings.getCollatorFromLocale() + val collator by lazy {UncivGame.Current.settings.getCollatorFromLocale()} @JvmStatic fun getCircledIcon(path: String, iconSize: Float, circleColor: Color = Color.LIGHT_GRAY) =