From 5ad2c41fb936fbb9927aa0b73c73f93f9fd1c3a0 Mon Sep 17 00:00:00 2001 From: NopoTheGamer <40329022+NopoTheGamer@users.noreply.github.com> Date: Tue, 17 Oct 2023 19:06:24 +1100 Subject: Fix ah keybind with pets (#880) --- src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/io') diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java index 6e3a2570..54d85fc3 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java @@ -1212,7 +1212,7 @@ public class NEUOverlay extends Gui { NotEnoughUpdates.INSTANCE.openGui = new GuiPriceGraph(internalname.get()); return true; } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.openAHKeybind) { - String cleanName = Utils.cleanColour(item.get("displayname").getAsString()); + String cleanName = Utils.cleanColour(item.get("displayname").getAsString()).replace("[Lvl {LVL}]", "").trim(); if (NotEnoughUpdates.INSTANCE.manager.auctionManager.getBazaarInfo(internalname.get()) == null) { NotEnoughUpdates.INSTANCE.trySendCommand("/ahs " + cleanName); } else { -- cgit