diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt b/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt index acedbc608..bd03261ea 100644 --- a/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt +++ b/src/main/java/at/hannibal2/skyhanni/events/PlaySoundEvent.kt @@ -1,11 +1,11 @@ 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.minecraftforge.fml.common.eventhandler.Cancelable @Cancelable class PlaySoundEvent(val soundName: String, val location: LorenzVec, val pitch: Float, val volume: Float) : LorenzEvent() { - val distanceToPlayer by lazy { location.distance(LocationUtils.playerLocation()) } + val distanceToPlayer by lazy { location.distanceToPlayer() } }
\ No newline at end of file |