mirror of
https://github.com/AppleDash/SaneEconomy.git
synced 2024-11-26 12:05:46 +01:00
Fix paging weirdness.
This commit is contained in:
parent
9eaab03c50
commit
2442261496
@ -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;
|
||||
|
@ -34,7 +34,7 @@ public class MapUtil {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (newMap.size() > amount) {
|
||||
if (newMap.size() >= amount) {
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user