diff options
author | DespairScent <74109497+DespairScent@users.noreply.github.com> | 2024-05-30 22:41:24 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-30 21:41:24 +0200 |
commit | 202fa439931f4171f2f53995e63f82da6876e596 (patch) | |
tree | 815598171f09ce9ff15dfa0cdcbc8e6e5e78ea14 | |
parent | 74a8bd7b4c78a403ed8be9aec13f200dff5f01c0 (diff) | |
download | NotEnoughUpdates-202fa439931f4171f2f53995e63f82da6876e596.tar.gz NotEnoughUpdates-202fa439931f4171f2f53995e63f82da6876e596.tar.bz2 NotEnoughUpdates-202fa439931f4171f2f53995e63f82da6876e596.zip |
Fix Builder's Ruler overlay not working outside the garden (#1183)
-rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java index 44169439..3f71e3c8 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/miscfeatures/CustomItemEffects.java @@ -1672,7 +1672,8 @@ public class CustomItemEffects { (candidate.getY() + 0.5f - d1 - player.getEyeHeight()) * (candidate.getY() + 0.5f - d1 - player.getEyeHeight()) + (candidate.getZ() + 0.5f - d2) * (candidate.getZ() + 0.5f - d2)); - if (candidate.getY() < 66 || candidate.getY() >= 76) { + if ("garden".equals(SBInfo.getInstance().getLocation()) && + (candidate.getY() < 66 || candidate.getY() >= 76)) { continue; } candidatesOldSorted.computeIfAbsent(distSq, k -> new HashSet<>()).add(candidate); |