aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
index c9397067..e4b5faff 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java
@@ -173,9 +173,14 @@ public class MinionHelperManager {
Utils.addChatMessage("api data cleared");
return;
}
+ }
+
+ if (args.length == 3) {
+ String parameter = args[1];
+
if (parameter.equals("maxperpage")) {
api.resetData();
- int maxPerPage = Integer.parseInt(args[1]);
+ int maxPerPage = Integer.parseInt(args[2]);
Utils.addChatMessage("set max per page to " + maxPerPage);
overlay.setMaxPerPage(maxPerPage);
return;