Fix settings load dependency on UncivGame.Current

This commit is contained in:
yairm210 2025-09-15 17:15:50 +03:00
parent 001185f4c7
commit 3785dcc532

View File

@ -81,8 +81,7 @@ interface ISortableGridContentProvider<IT, ACT> {
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) =