aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
diff options
context:
space:
mode:
authorDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-21 14:11:39 +0200
committerDeDiamondPro <67508414+DeDiamondPro@users.noreply.github.com>2021-08-21 14:11:39 +0200
commit0401cb030a57765eb5d0eff36453add731b69e03 (patch)
treef95f0e633b25b227bb340d422ba1547cffa173ba /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
parentfefed35f9af4e2abdedf9d1788d83662171089c8 (diff)
downloadnotenoughupdates-0401cb030a57765eb5d0eff36453add731b69e03.tar.gz
notenoughupdates-0401cb030a57765eb5d0eff36453add731b69e03.tar.bz2
notenoughupdates-0401cb030a57765eb5d0eff36453add731b69e03.zip
only show waypoints when in mines of divan
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java')
-rw-r--r--src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
index 357d8326..73e2b412 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
@@ -81,7 +81,8 @@ public class CrystalMetalDetectorSolver {
}
public static void render(float partialTicks) {
- if (SBInfo.getInstance().getLocation() != null && SBInfo.getInstance().getLocation().equals("crystal_hollows")) {
+ if (SBInfo.getInstance().getLocation() != null && SBInfo.getInstance().getLocation().equals("crystal_hollows") &&
+ SBInfo.getInstance().location.equals("Mines of Divan")) {
if (possibleBlocks.size() == 1) {
RenderUtils.renderWayPoint("Treasure", possibleBlocks.get(0).add(0, 2.5, 0), partialTicks);
} else if (possibleBlocks.size() > 1 && NotEnoughUpdates.INSTANCE.config.mining.metalDetectorShowPossible) {