From b55bf458cea19838170025bf891a20daa4db4516 Mon Sep 17 00:00:00 2001 From: isXander Date: Tue, 15 Aug 2023 17:34:29 +0100 Subject: Fix @LongField actually being a slider --- .../java/dev/isxander/yacl3/config/v2/impl/autogen/LongFieldImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'common/src/main/java/dev/isxander/yacl3/config') 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 { @Override protected ControllerBuilder createController(LongField annotation, ConfigField field, OptionAccess storage, Option option) { - return LongSliderControllerBuilder.create(option) + return LongFieldControllerBuilder.create(option) .valueFormatter(v -> { String key = getTranslationKey(field, "fmt." + v); if (Language.getInstance().has(key)) -- cgit