From 9038c84f2ab5edf575e3968bc5b6e502a9ced3ba Mon Sep 17 00:00:00 2001 From: senseiwells <66843746+senseiwells@users.noreply.github.com> Date: Sun, 20 Oct 2024 22:37:36 +0100 Subject: Fix default min values for floating point field controllers (#213) --- .../yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/dev/isxander/yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java') diff --git a/src/main/java/dev/isxander/yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java b/src/main/java/dev/isxander/yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java index 8d84e7d..51369cc 100644 --- a/src/main/java/dev/isxander/yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java +++ b/src/main/java/dev/isxander/yacl3/impl/controller/DoubleFieldControllerBuilderImpl.java @@ -11,7 +11,7 @@ import net.minecraft.network.chat.Component; import java.util.function.Function; public class DoubleFieldControllerBuilderImpl extends AbstractControllerBuilderImpl implements DoubleFieldControllerBuilder { - private double min = Double.MIN_VALUE; + private double min = -Double.MAX_VALUE; private double max = Double.MAX_VALUE; private ValueFormatter formatter = DoubleSliderController.DEFAULT_FORMATTER::apply; -- cgit