aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/me/Danker/features/CustomMusic.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java
index 8617e7b..d2d6b6f 100644
--- a/src/main/java/me/Danker/features/CustomMusic.java
+++ b/src/main/java/me/Danker/features/CustomMusic.java
@@ -79,7 +79,7 @@ public class CustomMusic {
@SubscribeEvent
public void onSound(PlaySoundEvent event) {
if (ToggleCommand.dungeonBossMusic && Utils.inDungeons && inDungeonBossRoom) {
- if (event.name.startsWith("note.")) event.setCanceled(true);
+ if (event.isCancelable() && event.name.startsWith("note.")) event.setCanceled(true);
}
}