Fix paging weirdness.

This commit is contained in:
AppleDash 2016-12-06 08:29:18 -05:00
parent 9eaab03c50
commit 2442261496
2 changed files with 6 additions and 2 deletions

View File

@ -43,7 +43,11 @@ public class BalanceTopCommand extends SaneEconomyCommand {
if (args.length == 1) {
try {
offset = 10 * Math.abs(Integer.parseInt(args[0]));
int page = Math.abs(Integer.parseInt(args[0]));
if (page > 1) {
page--;
}
offset = 10 * page;
} catch (NumberFormatException e) {
MessageUtils.sendMessage(sender, "%s is not a valid number.");
return;

View File

@ -34,7 +34,7 @@ public class MapUtil {
continue;
}
if (newMap.size() > amount) {
if (newMap.size() >= amount) {
break;
}