aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjani270 <69345714+jani270@users.noreply.github.com>2024-05-23 16:25:16 +0200
committerGitHub <noreply@github.com>2024-05-23 16:25:16 +0200
commit1481b8150cc4ec81562342eac4bee9490e9aac42 (patch)
tree43829ae1c18a9e38685c57030d5b462e4049d885
parent60808bb8f1aa3f2f6768d29da63ddb0ac17c42f6 (diff)
downloadNotEnoughUpdates-1481b8150cc4ec81562342eac4bee9490e9aac42.tar.gz
NotEnoughUpdates-1481b8150cc4ec81562342eac4bee9490e9aac42.tar.bz2
NotEnoughUpdates-1481b8150cc4ec81562342eac4bee9490e9aac42.zip
Fix Open AH/BZ Keybind working while the player doesnt have a active cookie buff (#1182)
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
index c3be39b2..d87cd863 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/NEUOverlay.java
@@ -34,6 +34,7 @@ import io.github.moulberry.notenoughupdates.mbgui.MBAnchorPoint;
import io.github.moulberry.notenoughupdates.mbgui.MBGuiElement;
import io.github.moulberry.notenoughupdates.mbgui.MBGuiGroupAligned;
import io.github.moulberry.notenoughupdates.mbgui.MBGuiGroupFloating;
+import io.github.moulberry.notenoughupdates.miscfeatures.CookieWarning;
import io.github.moulberry.notenoughupdates.miscfeatures.EnchantingSolvers;
import io.github.moulberry.notenoughupdates.miscfeatures.SunTzu;
import io.github.moulberry.notenoughupdates.miscgui.NeuSearchCalculator;
@@ -1219,7 +1220,8 @@ public class NEUOverlay extends Gui {
NotEnoughUpdates.INSTANCE.config.ahGraph.graphEnabled) {
NotEnoughUpdates.INSTANCE.openGui = new GuiPriceGraph(internalname.get());
return true;
- } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.openAHKeybind) {
+ } else if (keyPressed == NotEnoughUpdates.INSTANCE.config.misc.openAHKeybind &&
+ CookieWarning.hasActiveBoosterCookie()) {
String displayName = item.get("displayname").getAsString();
String cleanName = Utils.cleanColour(displayName).replace("[Lvl {LVL}]", "]").trim();