Skip to content

Commit

Permalink
Fix yacl-related deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
trainb0y committed Sep 24, 2023
1 parent 7246d5a commit ff44ab6
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ fun openConfigScreen(parent: Screen?): Screen {
.controller { option ->
EnumControllerBuilder.create(option)
.enumClass(ZoomOverlay::class.java)
.valueFormatter { e: ZoomOverlay -> Text.translatable(e.key) }
.formatValue { e: ZoomOverlay -> Text.translatable(e.key) }
}
.build()
)
Expand Down Expand Up @@ -160,7 +160,7 @@ fun openConfigScreen(parent: Screen?): Screen {
.controller { option ->
EnumControllerBuilder.create(option)
.enumClass(Presets::class.java)
.valueFormatter { e: Presets -> Text.translatable(e.key) }
.formatValue { e: Presets -> Text.translatable(e.key) }
}
.build()
)
Expand Down Expand Up @@ -258,7 +258,7 @@ fun openConfigScreen(parent: Screen?): Screen {
.controller { option ->
EnumControllerBuilder.create(option)
.enumClass(ZoomTransition::class.java)
.valueFormatter { e: ZoomTransition -> Text.translatable(e.key) }
.formatValue { e: ZoomTransition -> Text.translatable(e.key) }
}
.build()
)
Expand Down

0 comments on commit ff44ab6

Please sign in to comment.