From 04cc6b44e2e433f25dd38bc709a2e652b2a693c9 Mon Sep 17 00:00:00 2001 From: hannibal2 <24389977+hannibal00212@users.noreply.github.com> Date: Thu, 16 Feb 2023 17:09:13 +0100 Subject: Fixed bug with particles that blocks NotEnoughUpdates' Fishing features. --- src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/at/hannibal2/skyhanni/events') 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 -- cgit