diff options
author | jani270 <69345714+jani270@users.noreply.github.com> | 2024-04-10 20:04:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-10 20:04:42 +0200 |
commit | fb47aaffae90b28d66f0a8f4d6177ec5e1597d0f (patch) | |
tree | c22595e28f21f50c338e1d76b64b9a100d60ca32 /src | |
parent | 9a3155634c0b6e732f174b544cc34d4d1acc7394 (diff) | |
download | NotEnoughUpdates-fb47aaffae90b28d66f0a8f4d6177ec5e1597d0f.tar.gz NotEnoughUpdates-fb47aaffae90b28d66f0a8f4d6177ec5e1597d0f.tar.bz2 NotEnoughUpdates-fb47aaffae90b28d66f0a8f4d6177ec5e1597d0f.zip |
Fix Drill Bar and Commission Overlay not working correctly in Mineshafts (#1081)
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/overlays/FuelBar.java | 2 | ||||
-rw-r--r-- | src/main/java/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 |