diff --git a/src/main/java/net/kunmc/lab/configlib/value/DoubleValue.java b/src/main/java/net/kunmc/lab/configlib/value/DoubleValue.java index 0328321..72d7a66 100644 --- a/src/main/java/net/kunmc/lab/configlib/value/DoubleValue.java +++ b/src/main/java/net/kunmc/lab/configlib/value/DoubleValue.java @@ -13,7 +13,7 @@ public class DoubleValue extends NumericValue { private transient boolean writable = true; public DoubleValue(Double value) { - this(value, Double.MIN_VALUE, Double.MAX_VALUE); + this(value, -Double.MAX_VALUE, Double.MAX_VALUE); } public DoubleValue(Double value, Double min, Double max) { diff --git a/src/main/java/net/kunmc/lab/configlib/value/FloatValue.java b/src/main/java/net/kunmc/lab/configlib/value/FloatValue.java index d8db2ee..09ca8e0 100644 --- a/src/main/java/net/kunmc/lab/configlib/value/FloatValue.java +++ b/src/main/java/net/kunmc/lab/configlib/value/FloatValue.java @@ -13,7 +13,7 @@ public class FloatValue extends NumericValue { private transient boolean writable = true; public FloatValue(Float value) { - this(value, Float.MIN_VALUE, Float.MAX_VALUE); + this(value, -Float.MAX_VALUE, Float.MAX_VALUE); } public FloatValue(Float value, Float min, Float max) {