Skip to content

Commit

Permalink
fix: Make sure user settings are ordered
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Dec 2, 2023
1 parent 546b9c7 commit c9de1b6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class UserSettingsCommand(instances: InstanceManager) : ImperiumApplication.List
playerSettingsInterface.addTransformer { view, pane ->
pane.title = "Player Settings"
pane.content = "Change your settings by clicking on the corresponding buttons."
for ((setting, value) in view.state[SETTINGS]!!) {
for ((setting, value) in view.state[SETTINGS]!!.entries.sortedBy { it.key.name }) {
val text = buildString {
append(setting.name.lowercase().replace("_", "-"))
append(": ")
Expand Down

0 comments on commit c9de1b6

Please sign in to comment.