diff options
author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 15:04:39 +0100 |
---|---|---|
committer | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2023-02-16 15:04:39 +0100 |
commit | d887e8dd0e24c300722b859cab4222e29f32c83a (patch) | |
tree | 7a0bfd64517984c083d688a1b60231ca7a02cea1 /src/main/java/at/hannibal2/skyhanni/events | |
parent | f39532f554eb1b0f7171ed90ef81ea28fccf75be (diff) | |
download | skyhanni-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/events')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt index cdf2f29a5..acedbc608 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt @@ -1,8 +1,11 @@ package at.hannibal2.skyhanni.events +import at.hannibal2.skyhanni.utils.LocationUtils import at.hannibal2.skyhanni.utils.LorenzVec import net.minecraftforge.fml.common.eventhandler.Cancelable @Cancelable class PlaySoundEvent(val soundName: String, val location: LorenzVec, val pitch: Float, val volume: Float) : - LorenzEvent()
\ No newline at end of file + LorenzEvent() { + val distanceToPlayer by lazy { location.distance(LocationUtils.playerLocation()) } +}
\ No newline at end of file |