aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAaron <51387595+AzureAaron@users.noreply.github.com>2023-07-28 20:12:37 -0400
committerAaron <51387595+AzureAaron@users.noreply.github.com>2023-07-28 20:12:37 -0400
commit233323cfba664d16acd82ae18c84af0cc02be485 (patch)
tree6dca9e4ddbc0c5dd4edc2311f2c61d0939331d41 /src/main
parentbc0c2321c09cf234e143f112857a3cf86792125a (diff)
downloadSkyblocker-233323cfba664d16acd82ae18c84af0cc02be485.tar.gz
Skyblocker-233323cfba664d16acd82ae18c84af0cc02be485.tar.bz2
Skyblocker-233323cfba664d16acd82ae18c84af0cc02be485.zip
more changes
this is making me sad ;(
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/xmrvizzy/skyblocker/skyblock/EtherwarpOverlay.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/xmrvizzy/skyblocker/skyblock/EtherwarpOverlay.java b/src/main/java/me/xmrvizzy/skyblocker/skyblock/EtherwarpOverlay.java
index 0a425229..02480513 100644
--- a/src/main/java/me/xmrvizzy/skyblocker/skyblock/EtherwarpOverlay.java
+++ b/src/main/java/me/xmrvizzy/skyblocker/skyblock/EtherwarpOverlay.java
@@ -31,8 +31,8 @@ public class EtherwarpOverlay {
String itemId = PriceInfoTooltip.getInternalNameFromNBT(heldItem);
NbtCompound nbt = heldItem.getNbt();
- if (itemId != null && (itemId.equals("ASPECT_OF_THE_VOID") || itemId.equals("ASPECT_OF_THE_END") || itemId.equals("ETHERWARP_CONDUIT")) && (nbt != null && nbt.getCompound("ExtraAttributes").getInt("ethermerge") == 1) && CLIENT.options.sneakKey.isPressed()) {
- int range = (nbt != null && nbt.getCompound("ExtraAttributes").contains("tuned_transmission")) ? 57 + nbt.getCompound("ExtraAttributes").getInt("tuned_transmission") : 61;
+ if (itemId != null && (itemId.equals("ASPECT_OF_THE_VOID") || itemId.equals("ASPECT_OF_THE_END") || itemId.equals("ETHERWARP_CONDUIT")) && (nbt != null && nbt.getCompound("ExtraAttributes").getInt("ethermerge") == 1) && (CLIENT.options.sneakKey.isPressed() || itemId.equals("ETHERWARP_CONDUIT"))) {
+ int range = (nbt.getCompound("ExtraAttributes").contains("tuned_transmission")) ? 57 + nbt.getCompound("ExtraAttributes").getInt("tuned_transmission") : 61;
HitResult result = CLIENT.player.raycast(range, wrc.tickDelta(), false);
if (result instanceof BlockHitResult blockHit) {