aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
diff options
context:
space:
mode:
authorJ10a1n15 <45315647+j10a1n15@users.noreply.github.com>2024-05-02 19:15:50 +0200
committerGitHub <noreply@github.com>2024-05-02 19:15:50 +0200
commita2193642bab3a35a7147fff6cc8d5c6924e1c6dd (patch)
tree17996716e51f47c33f496fe8bcbcff5aa367ea52 /src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
parent156de663b37184bc2dc67f4004947c7de1d3413e (diff)
downloadnotenoughupdates-a2193642bab3a35a7147fff6cc8d5c6924e1c6dd.tar.gz
notenoughupdates-a2193642bab3a35a7147fff6cc8d5c6924e1c6dd.tar.bz2
notenoughupdates-a2193642bab3a35a7147fff6cc8d5c6924e1c6dd.zip
Add Line to Metal Detector Solution (#1131)
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, 3 insertions, 0 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 a78a28f4..0624d9fa 100644
--- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
+++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java
@@ -369,6 +369,9 @@ public class CrystalMetalDetectorSolver {
RenderUtils.renderBeaconBeam(block.add(0, 1, 0), beaconRGB, 1.0f, partialTicks);
RenderUtils.renderWayPoint("Treasure", possibleBlocks.iterator().next().add(0, 2.5, 0), partialTicks);
+ if (NotEnoughUpdates.INSTANCE.config.mining.metalDetectorLineToSolution) {
+ RenderUtils.renderLineToBlock(block.add(0, 1, 0), 0x1fd8f1, partialTicks);
+ }
} else if (possibleBlocks.size() > 1 && NotEnoughUpdates.INSTANCE.config.mining.metalDetectorShowPossible) {
for (BlockPos block : possibleBlocks) {
RenderUtils.renderBeaconBeam(block.add(0, 1, 0), beaconRGB, 1.0f, partialTicks);