From 7d95510b60406fbef32c342c5c2adbce31d057c4 Mon Sep 17 00:00:00 2001 From: Lorenz Date: Sun, 4 Sep 2022 11:51:53 +0200 Subject: Hypixel handles line breaks very oddly --- .../miscgui/minionhelper/loaders/MinionHelperInventoryLoader.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperInventoryLoader.java b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperInventoryLoader.java index de9dadb3..14571cb3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperInventoryLoader.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscgui/minionhelper/loaders/MinionHelperInventoryLoader.java @@ -47,10 +47,10 @@ public class MinionHelperInventoryLoader { private int ticks = 0; //§7Craft §b5 §7more §aunique §7minions - private final Pattern PATTERN_MINIONS_NEEDED = Pattern.compile("§7Craft §b(\\d) §7more §aunique §7minions"); + private final Pattern PATTERN_MINIONS_NEEDED = Pattern.compile("§7Craft §b(\\d+) §7more §aunique( §7minions)?"); //§r §r§fPelts: §r§59§r - private final Pattern PATTERN_PELTS = Pattern.compile("§r §r§fPelts: §r§5(\\d)§r"); + private final Pattern PATTERN_PELTS = Pattern.compile("§r §r§fPelts: §r§5(\\d+)§r"); public MinionHelperInventoryLoader(MinionHelperManager manager) { this.manager = manager; -- cgit