summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/misc
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-16 15:04:39 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-16 15:04:39 +0100
commitd887e8dd0e24c300722b859cab4222e29f32c83a (patch)
tree7a0bfd64517984c083d688a1b60231ca7a02cea1 /src/main/java/at/hannibal2/skyhanni/features/misc
parentf39532f554eb1b0f7171ed90ef81ea28fccf75be (diff)
downloadskyhanni-d887e8dd0e24c300722b859cab4222e29f32c83a.tar.gz
skyhanni-d887e8dd0e24c300722b859cab4222e29f32c83a.tar.bz2
skyhanni-d887e8dd0e24c300722b859cab4222e29f32c83a.zip
Moved packet test into own class.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/misc')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/misc/tiarelay/TiaRelayHelper.kt4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/misc/tiarelay/TiaRelayHelper.kt b/src/main/java/at/hannibal2/skyhanni/features/misc/tiarelay/TiaRelayHelper.kt
index a622fa02a..64b54d9e6 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/misc/tiarelay/TiaRelayHelper.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/misc/tiarelay/TiaRelayHelper.kt
@@ -6,7 +6,6 @@ import at.hannibal2.skyhanni.events.PlaySoundEvent
import at.hannibal2.skyhanni.events.RenderInventoryItemTipEvent
import at.hannibal2.skyhanni.utils.InventoryUtils
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
-import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.sorted
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -37,8 +36,7 @@ class TiaRelayHelper {
if (!SkyHanniMod.feature.misc.tiaRelayHelper) return
if (!inInventory) return
- val location = event.location
- val distance = location.distance(LocationUtils.playerLocation())
+ val distance = event.distanceToPlayer
if (distance >= 2) return
if (lastClickSlot == 0) return