aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/dulkirmod/features/ReaperDisplay.kt
diff options
context:
space:
mode:
authornea <nea@nea.moe>2023-06-14 23:24:59 +0200
committernea <nea@nea.moe>2023-06-14 23:24:59 +0200
commit23840aa72afb6708cfc2474873c0d6be6fe2da6f (patch)
tree8643c8c0ad6440fb39ebebed15b4d75ce4dc03c3 /src/main/kotlin/dulkirmod/features/ReaperDisplay.kt
parentbff554f9e6d399e205f3299713eed7d9bfe38a17 (diff)
downloadDulkirMod-23840aa72afb6708cfc2474873c0d6be6fe2da6f.tar.gz
DulkirMod-23840aa72afb6708cfc2474873c0d6be6fe2da6f.tar.bz2
DulkirMod-23840aa72afb6708cfc2474873c0d6be6fe2da6f.zip
Add AlwaysPlaySoundEvent that even fires when master volume is 0
Diffstat (limited to 'src/main/kotlin/dulkirmod/features/ReaperDisplay.kt')
-rw-r--r--src/main/kotlin/dulkirmod/features/ReaperDisplay.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/kotlin/dulkirmod/features/ReaperDisplay.kt b/src/main/kotlin/dulkirmod/features/ReaperDisplay.kt
index f398ca2..6d6489e 100644
--- a/src/main/kotlin/dulkirmod/features/ReaperDisplay.kt
+++ b/src/main/kotlin/dulkirmod/features/ReaperDisplay.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
@@ -24,7 +24,7 @@ object ReaperDisplay {
}
@SubscribeEvent
- fun onSound(event: PlaySoundEvent) {
+ fun onSound(event: AlwaysPlaySoundEvent) {
if (event.name != "mob.zombie.remedy") return
if (event.sound.pitch != 1.0f) return
if (event.sound.volume != .5f) return