diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt index 22c15606c..07cbd72fb 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt @@ -1,5 +1,6 @@ package at.hannibal2.skyhanni.events +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzVec import net.minecraft.util.EnumParticleTypes import net.minecraftforge.fml.common.eventhandler.Cancelable @@ -13,4 +14,7 @@ class ReceiveParticleEvent( val offset: LorenzVec, val longDistance: Boolean, val particleArgs: IntArray -) : LorenzEvent()
\ No newline at end of file +) : + LorenzEvent() { + val distanceToPlayer by lazy { location.distance(LocationUtils.playerLocation()) } +}
\ No newline at end of file |