mirror of
https://github.com/Oth3r/Sit.git
synced 2025-09-20 00:13:21 +02:00
change because deprecation
This commit is contained in:
parent
82cb2eebfe
commit
5518ccea82
1 changed files with 2 additions and 2 deletions
|
@ -98,7 +98,7 @@ public class ModMenu implements ModMenuApi {
|
|||
.append("\n").append(lang("hand.requirements.description_4").styled(style -> style.withColor(TextColor.fromFormatting(Formatting.RED))))))
|
||||
.binding(config.defaults.mainReq, () -> config.mainReq, n -> config.mainReq = n)
|
||||
.controller(opt -> EnumControllerBuilder.create(opt).enumClass(config.HandRequirements.class)
|
||||
.valueFormatter(v -> Text.translatable("config.sit."+v.name().toLowerCase())))
|
||||
.formatValue(v -> Text.translatable("config.sit."+v.name().toLowerCase())))
|
||||
.build())
|
||||
.group(OptionGroup.createBuilder()
|
||||
.name(lang("hand.restrictions"))
|
||||
|
@ -150,7 +150,7 @@ public class ModMenu implements ModMenuApi {
|
|||
.append("\n").append(lang("hand.requirements.description_4").styled(style -> style.withColor(TextColor.fromFormatting(Formatting.RED))))))
|
||||
.binding(config.defaults.offReq, () -> config.offReq, n -> config.offReq = n)
|
||||
.controller(opt -> EnumControllerBuilder.create(opt).enumClass(config.HandRequirements.class)
|
||||
.valueFormatter(v -> Text.translatable("config.sit."+v.name().toLowerCase())))
|
||||
.formatValue(v -> Text.translatable("config.sit."+v.name().toLowerCase())))
|
||||
.build())
|
||||
.group(OptionGroup.createBuilder()
|
||||
.name(lang("hand.restrictions"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue