From fb47aaffae90b28d66f0a8f4d6177ec5e1597d0f Mon Sep 17 00:00:00 2001 From: jani270 <69345714+jani270@users.noreply.github.com> Date: Wed, 10 Apr 2024 20:04:42 +0200 Subject: Fix Drill Bar and Commission Overlay not working correctly in Mineshafts (#1081) --- .../java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java | 2 +- .../io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java index 0974b393..1d784b97 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java @@ -56,7 +56,7 @@ public class FuelBar { if (SBInfo.getInstance().getLocation() == null) return; if (!(SBInfo.getInstance().getLocation().startsWith("mining_") || SBInfo.getInstance().getLocation().equals( - "crystal_hollows"))) + "crystal_hollows") || SBInfo.getInstance().getLocation().equals("mineshaft"))) return; if (Minecraft.getMinecraft().thePlayer == null) return; diff --git a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java index 64d49304..b187c487 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/overlays/MiningOverlay.java @@ -250,7 +250,8 @@ public class MiningOverlay extends TextTabOverlay { //thanks to "Pure Genie#7250" for helping with this (makes tita alert and waypoints work without mine overlay) if (SBInfo.getInstance().getLocation() == null) return; if (SBInfo.getInstance().getLocation().equals("mining_3") || - SBInfo.getInstance().getLocation().equals("crystal_hollows")) { + SBInfo.getInstance().getLocation().equals("crystal_hollows") || SBInfo.getInstance().getLocation().equals( + "mineshaft")) { commissionProgress.clear(); // These strings will be displayed one after the other when the player list is disabled -- cgit