Skip to content

Commit 50f8a81

Browse files
committed
fix: comparison of SoundEvents using registry values
[no ci]
1 parent cafaee7 commit 50f8a81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mod/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons/DungeonFeatures.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -612,11 +612,11 @@ object DungeonFeatures : EventSubscriber {
612612
if (event.packet is PlaySoundS2CPacket) {
613613
val packet = event.packet
614614
if (Skytils.config.disableTerracottaSounds && isInTerracottaPhase) {
615-
val sound = packet.sound
615+
val sound = packet.sound.value()
616616
val pitch = packet.pitch
617617
val volume = packet.volume
618618
if (sound == SoundEvents.ENTITY_GENERIC_HURT && pitch == 0f && volume == 0f) event.cancelled = true
619-
if (sound == SoundEvents.ENTITY_GENERIC_EAT && pitch == 0.6984127f && volume == 1f) event.cancelled = true
619+
if (sound == SoundEvents.ENTITY_GENERIC_EAT.value() && pitch == 0.6984127f && volume == 1f) event.cancelled = true
620620
}
621621
}
622622
}

0 commit comments

Comments
 (0)