Skip to content

Commit

Permalink
Show a range's default value in config file
Browse files Browse the repository at this point in the history
Closes #1643
  • Loading branch information
TelepathicGrunt committed Nov 1, 2024
1 parent 62eb61a commit 67c5d6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,8 @@ public <V extends Comparable<? super V>> ConfigValue<V> defineInRange(String pat
public <V extends Comparable<? super V>> ConfigValue<V> defineInRange(List<String> path, Supplier<V> defaultSupplier, V min, V max, Class<V> clazz) {
Range<V> range = new Range<>(clazz, min, max);
context.setRange(range);
comment("Range: " + range.toString());
comment("Range: " + range);
comment("Default: " + defaultSupplier.get());
return define(path, defaultSupplier, range);
}

Expand Down

0 comments on commit 67c5d6a

Please sign in to comment.