aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
index a78f4a64c..85a233619 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/dungeon/DungeonCleanEnd.kt
@@ -105,9 +105,18 @@ class DungeonCleanEnd {
}
@SubscribeEvent
- fun onReceivePacket(event: PlayParticleEvent) {
+ fun onPlayParticle(event: PlayParticleEvent) {
if (shouldBlock()) {
event.isCanceled = true
}
}
+
+ @SubscribeEvent
+ fun onPlaySound(event: PlaySoundEvent) {
+ if (shouldBlock() && !chestsSpawned) {
+ if (event.soundName.startsWith("note.")) {
+ event.isCanceled = true
+ }
+ }
+ }
} \ No newline at end of file