fixed a type error in the config system

This commit is contained in:
FalsePattern committed 2024-11-14 19:04:32 +01:00
1 parent 8e3dcf5143
commit cd50b56a85
1 file changed
+1 -1
@@ -43,7 +43,7 @@ public class DoubleListConfigField extends AListConfigField<double[]> {
private final double[] defaultValue;
public DoubleListConfigField(Field field, Configuration configuration, String category) throws ConfigException {
super(field, configuration, category, Property.Type.INTEGER);
super(field, configuration, category, Property.Type.DOUBLE);
val range = Optional.ofNullable(field.getAnnotation(Config.RangeDouble.class));
min = range.map(Config.RangeDouble::min).orElse(-Double.MAX_VALUE);
max = range.map(Config.RangeDouble::max).orElse(Double.MAX_VALUE);