File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
mod/src/main/kotlin/gg/skytils/skytilsmod/features/impl/dungeons Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments