aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java')
-rw-r--r--src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java b/src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java
index 08fefd0..904b323 100644
--- a/src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java
+++ b/src/main/java/dev/isxander/yacl3/impl/controller/FloatFieldControllerBuilderImpl.java
@@ -11,7 +11,7 @@ import net.minecraft.network.chat.Component;
import java.util.function.Function;
public class FloatFieldControllerBuilderImpl extends AbstractControllerBuilderImpl<Float> implements FloatFieldControllerBuilder {
- private float min = Float.MIN_VALUE;
+ private float min = -Float.MAX_VALUE;
private float max = Float.MAX_VALUE;
private ValueFormatter<Float> formatter = FloatSliderController.DEFAULT_FORMATTER::apply;