Skip to content

Commit

Permalink
fixed a type error in the config system
Browse files Browse the repository at this point in the history
  • Loading branch information
FalsePattern committed Nov 14, 2024
1 parent 8e3dcf5 commit cd50b56
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cd50b56

Please sign in to comment.