diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 17:09:13 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 17:09:13 +0100 |
commit | 04cc6b44e2e433f25dd38bc709a2e652b2a693c9 (patch) | |
tree | b6926c001b552c273bb22db264080786e379ff22 /src/main/java/at/hannibal2/skyhanni/events/ReceiveParticleEvent.kt | |
parent | cb4fa47b4120dd8c18cbef01d673c051dd883ce8 (diff) | |
download | skyhanni-04cc6b44e2e433f25dd38bc709a2e652b2a693c9.tar.gz skyhanni-04cc6b44e2e433f25dd38bc709a2e652b2a693c9.tar.bz2 skyhanni-04cc6b44e2e433f25dd38bc709a2e652b2a693c9.zip |
Fixed bug with particles that blocks NotEnoughUpdates' Fishing features.
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 |