diff options
author | David Mills <85420839+Keebler408@users.noreply.github.com> | 2021-09-10 08:11:15 -0500 |
---|---|---|
committer | David Mills <85420839+Keebler408@users.noreply.github.com> | 2021-09-10 08:11:15 -0500 |
commit | 29cea4c4922443ae78c47cd49e4a74ab67eb15f2 (patch) | |
tree | 5d525ffdddefe93de39bcfb3122430776a04a8c3 | |
parent | 935ecebae26a2551ab330e0f0e28c8233df852e8 (diff) | |
download | NotEnoughUpdates-29cea4c4922443ae78c47cd49e4a74ab67eb15f2.tar.gz NotEnoughUpdates-29cea4c4922443ae78c47cd49e4a74ab67eb15f2.tar.bz2 NotEnoughUpdates-29cea4c4922443ae78c47cd49e4a74ab67eb15f2.zip |
Small tweaks based on more testing
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java | 5 |
1 files changed, 3 insertions, 2 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 b457f274..1172f1c5 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CrystalMetalDetectorSolver.java @@ -118,7 +118,8 @@ public class CrystalMetalDetectorSolver { RenderUtils.renderBeaconBeam(x, y, z, beaconRGB, 1.0f, partialTicks); RenderUtils.renderWayPoint("Treasure", possibleBlocks.get(0).add(0, 2.5, 0), partialTicks); - } else if (possibleBlocks.size() > 1 && NotEnoughUpdates.INSTANCE.config.mining.metalDetectorShowPossible) { + } else if (possibleBlocks.size() > 1 && (locations.size() > 1 || possibleBlocks.size() < 10) && + NotEnoughUpdates.INSTANCE.config.mining.metalDetectorShowPossible) { for (BlockPos block : possibleBlocks) { double x = block.getX() - viewer.getX(); double y = block.getY() - viewer.getY();; @@ -137,7 +138,7 @@ public class CrystalMetalDetectorSolver { } private static void removeDuplicates() { - if (possibleBlocks.size() > 1 && possibleBlocks.size() < 7) { + if (possibleBlocks.size() > 1 && possibleBlocks.size() < 10) { Vec3 firstBlockVec = new Vec3( possibleBlocks.get(0).getX(), 0, possibleBlocks.get(0).getZ()); Boolean allBlocksAreClose = true; |