Skip to content

Commit

Permalink
Show a range's default value in config file (neoforged#1653)
Browse files Browse the repository at this point in the history
  • Loading branch information
TelepathicGrunt authored Nov 4, 2024
1 parent 0cde403 commit e9d5fee
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 e9d5fee

Please sign in to comment.