diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-02 12:56:00 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-02 12:56:00 +0200 |
commit | a42f3c9b83a9342de5e124db71c519ca41aea5f5 (patch) | |
tree | d37830d10499fae8a3f9c52762095052354c63fe /src | |
parent | 5f1d53b27742615f043801e7ccacb74248a3e0e5 (diff) | |
download | NotEnoughUpdates-a42f3c9b83a9342de5e124db71c519ca41aea5f5.tar.gz NotEnoughUpdates-a42f3c9b83a9342de5e124db71c519ca41aea5f5.tar.bz2 NotEnoughUpdates-a42f3c9b83a9342de5e124db71c519ca41aea5f5.zip |
add page support
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/MinionHelperManager.java | 7 |
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; |