diff options
author | isXander <xander@isxander.dev> | 2023-08-15 17:34:29 +0100 |
---|---|---|
committer | isXander <xander@isxander.dev> | 2023-08-15 17:34:29 +0100 |
commit | b55bf458cea19838170025bf891a20daa4db4516 (patch) | |
tree | 7e4f9de801286fe8cee19e54154c1174ddcad5b6 /common/src/main/java/dev/isxander/yacl3/config | |
parent | eac4c6364fc9c98777cc526ed800bcc3acfdea8e (diff) | |
download | YetAnotherConfigLib-b55bf458cea19838170025bf891a20daa4db4516.tar.gz YetAnotherConfigLib-b55bf458cea19838170025bf891a20daa4db4516.tar.bz2 YetAnotherConfigLib-b55bf458cea19838170025bf891a20daa4db4516.zip |
Fix @LongField actually being a slider
Diffstat (limited to 'common/src/main/java/dev/isxander/yacl3/config')
-rw-r--r-- | common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java index e35fdd0..09e0255 100644 --- a/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java +++ b/common/src/main/java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java @@ -2,7 +2,7 @@ package dev.isxander.yacl3.config.v2.impl.autogen; import dev.isxander.yacl3.api.Option; import dev.isxander.yacl3.api.controller.ControllerBuilder; -import dev.isxander.yacl3.api.controller.LongSliderControllerBuilder; +import dev.isxander.yacl3.api.controller.LongFieldControllerBuilder; import dev.isxander.yacl3.config.v2.api.ConfigField; import dev.isxander.yacl3.config.v2.api.autogen.LongField; import dev.isxander.yacl3.config.v2.api.autogen.OptionAccess; @@ -13,7 +13,7 @@ import net.minecraft.network.chat.Component; public class LongFieldImpl extends SimpleOptionFactory<LongField, Long> { @Override protected ControllerBuilder<Long> createController(LongField annotation, ConfigField<Long> field, OptionAccess storage, Option<Long> option) { - return LongSliderControllerBuilder.create(option) + return LongFieldControllerBuilder.create(option) .valueFormatter(v -> { String key = getTranslationKey(field, "fmt." + v); if (Language.getInstance().has(key)) |