diff options
author | nea <nea@nea.moe> | 2023-06-14 23:24:59 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-06-14 23:24:59 +0200 |
commit | 23840aa72afb6708cfc2474873c0d6be6fe2da6f (patch) | |
tree | 8643c8c0ad6440fb39ebebed15b4d75ce4dc03c3 /src/main/kotlin/dulkirmod/features/ReaperDisplay.kt | |
parent | bff554f9e6d399e205f3299713eed7d9bfe38a17 (diff) | |
download | DulkirMod-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.kt | 4 |
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 |