aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-08-03 22:53:06 -0400
committerbowser0000 <bowser0000@gmail.com>2022-08-03 22:53:06 -0400
commit77370ce777bf41fec125dbdd3d33b94d579191ba (patch)
treef71644032ad86fbbcf83b357cca8ebf1e1602fad /src/main
parenta40f87f555e01b09e99ab61e83caf8939ad1a8fd (diff)
downloadSkyblockMod-77370ce777bf41fec125dbdd3d33b94d579191ba.tar.gz
SkyblockMod-77370ce777bf41fec125dbdd3d33b94d579191ba.tar.bz2
SkyblockMod-77370ce777bf41fec125dbdd3d33b94d579191ba.zip
Fix F7 custom music
I hope
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/features/CustomMusic.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java
index 717a3ab..8ce8c05 100644
--- a/src/main/java/me/Danker/features/CustomMusic.java
+++ b/src/main/java/me/Danker/features/CustomMusic.java
@@ -67,6 +67,8 @@ public class CustomMusic {
public static Song park;
public static int parkVolume;
+ static int curPhase = -1;
+
@SubscribeEvent
public void onWorldChange(WorldEvent.Load event) {
@@ -96,7 +98,7 @@ public class CustomMusic {
firstLine.contains("sadan") || // F6
firstLine.contains("maxor")) { // F7
- if (ToggleCommand.dungeonBossMusic) dungeonboss.start();
+ if (ToggleCommand.dungeonBossMusic && curPhase == -1) dungeonboss.start();
}
}
} else {
@@ -159,12 +161,16 @@ public class CustomMusic {
if (ToggleCommand.dungeonBossMusic) {
if (message.startsWith("[BOSS] Storm: Pathetic Maxor")) {
phase2.start();
+ curPhase = 2;
} else if (message.startsWith("[BOSS] Goldor: Who dares trespass into my domain?")) {
phase3.start();
+ curPhase = 3;
} else if (message.startsWith("[BOSS] Necron: You went further than any human before")) {
phase4.start();
+ curPhase = 4;
} else if (message.startsWith("[BOSS] ") && message.endsWith("You.. again?")) {
phase5.start();
+ curPhase = 5;
}
}
@@ -238,6 +244,7 @@ public class CustomMusic {
if (crimsonIsle != null) crimsonIsle.stop();
if (end != null) end.stop();
if (park != null) park.stop();
+ curPhase = -1;
}
public static class Song {