/bsb range set : allow to set a value which is = to the max range

This commit is contained in:
Florian CUNY 2018-07-19 12:55:47 +02:00
parent 4df9f89e3e
commit 09c0eb846e

View File

@ -56,7 +56,7 @@ public class AdminRangeSetCommand extends CompositeCommand {
user.sendMessage("commands.admin.range.set.invalid-value.too-low", TextVariables.NUMBER, args.get(1));
return false;
}
if (range >= island.getRange()) {
if (range > island.getRange()) {
user.sendMessage("commands.admin.range.set.invalid-value.too-high", TextVariables.NUMBER, args.get(1));
return false;
}