aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-15 20:37:56 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-15 20:37:56 +0200
commite43d1b9e5debae6fb9b75134f3e708e8baa83ea1 (patch)
tree178ebd0d1b33430918e3788219464185b3d48305 /src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt
parentebdeedb91341e2c111dfac6b73860abf04839f67 (diff)
downloadskyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.tar.gz
skyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.tar.bz2
skyhanni-e43d1b9e5debae6fb9b75134f3e708e8baa83ea1.zip
Used distanceToPlayer
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt
index 07cbd72fb..975990b86 100644
--- a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt
+++ b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt
@@ -1,6 +1,6 @@
package at.hannibal2.skyhanni.events
-import at.hannibal2.skyhanni.utils.LocationUtils
+import at.hannibal2.skyhanni.utils.LocationUtils.distanceToPlayer
import at.hannibal2.skyhanni.utils.LorenzVec
import net.minecraft.util.EnumParticleTypes
import net.minecraftforge.fml.common.eventhandler.Cancelable
@@ -16,5 +16,5 @@ class ReceiveParticleEvent(
val particleArgs: IntArray
) :
LorenzEvent() {
- val distanceToPlayer by lazy { location.distance(LocationUtils.playerLocation()) }
+ val distanceToPlayer by lazy { location.distanceToPlayer() }
} \ No newline at end of file