aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/ImpactDisplay.kt
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/ImpactDisplay.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/ImpactDisplay.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ImpactDisplay.kt b/src/main/kotlin/dulkirmod/features/ImpactDisplay.kt
index 9415edc..5e473ee 100644
--- a/src/main/kotlin/dulkirmod/features/ImpactDisplay.kt
+++ b/src/main/kotlin/dulkirmod/features/ImpactDisplay.kt
@@ -1,8 +1,8 @@
package dulkirmod.features
+import dulkirmod.events.AlwaysPlaySoundEvent
import net.minecraft.item.ItemStack
import net.minecraft.nbt.NBTTagCompound
-import net.minecraftforge.client.event.sound.PlaySoundEvent
import net.minecraftforge.event.world.WorldEvent
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable
@@ -25,7 +25,7 @@ object ImpactDisplay {
}
@SubscribeEvent
- fun onSound(event: PlaySoundEvent) {
+ fun onSound(event: AlwaysPlaySoundEvent) {
if (event.name != "mob.zombie.remedy") return
if (event.sound.pitch != 0.6984127f) return
if (event.sound.volume != 1.0f) return