changed integer setting constructor to correctly use maximum
This commit is contained in:
parent
ca99e6cfef
commit
34df173940
@ -20,7 +20,7 @@ public abstract class IntegerSetting extends Setting<Integer> {
|
||||
private final List<Integer> options;
|
||||
|
||||
public IntegerSetting(Settings.Key key, int minimum, int maximum) {
|
||||
this(key, IntStream.range(minimum, maximum).boxed().toList());
|
||||
this(key, IntStream.range(minimum, maximum+1).boxed().toList());
|
||||
}
|
||||
|
||||
public IntegerSetting(Settings.Key key, List<Integer> options) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user