From a42f3c9b83a9342de5e124db71c519ca41aea5f5 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Tue, 2 Aug 2022 12:56:00 +0200 Subject: add page support --- .../notenoughupdates/miscgui/minionhelper/MinionHelperManager.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit