This commit is contained in:
1 parent
c4c268b079
commit
89870e7044
1 file changed
+1
-1
@@ -415,7 +415,7 @@ public class CarpetSettings
|
|||||||
|
|
||||||
private static class FillLimitLimits extends Validator<Integer> {
|
private static class FillLimitLimits extends Validator<Integer> {
|
||||||
@Override public Integer validate(ServerCommandSource source, ParsedRule<Integer> currentRule, Integer newValue, String string) {
|
@Override public Integer validate(ServerCommandSource source, ParsedRule<Integer> currentRule, Integer newValue, String string) {
|
||||||
return (newValue>0 && newValue < 20000000) ? newValue : null;
|
return (newValue>0 && newValue <= 20000000) ? newValue : null;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String description() { return "You must choose a value from 1 to 20M";}
|
public String description() { return "You must choose a value from 1 to 20M";}
|
||||||
|
|||||||
Reference in new issue
Block a user