Skip to content

Commit

Permalink
Show a range's default value in config file (neoforged#1652)
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt authored Nov 4, 2024
1 parent aa45d10 commit 521fced
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(" Default: " + defaultSupplier.get());
comment(" Range: " + range);
return define(path, defaultSupplier, range);
}

Expand Down

0 comments on commit 521fced

Please sign in to comment.