aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-03-19 01:16:33 -0400
committerbowser0000 <bowser0000@gmail.com>2021-03-19 01:16:33 -0400
commita7429de1ee33dbc4978b7246771b38d6be447a85 (patch)
treee8f7eaf83daeda4115a23c37be042993c50708ad /src/main/java
parentf4aa6f6e5383da9e2b08f94aa131bf960e8fa471 (diff)
downloadSkyblockMod-a7429de1ee33dbc4978b7246771b38d6be447a85.tar.gz
SkyblockMod-a7429de1ee33dbc4978b7246771b38d6be447a85.tar.bz2
SkyblockMod-a7429de1ee33dbc4978b7246771b38d6be447a85.zip
Fix crash with custom music
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);
}
}