diff options
-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); |