aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2022-04-30 13:21:06 -0400
committerbowser0000 <bowser0000@gmail.com>2022-04-30 13:21:06 -0400
commit7f71df3d99a2c9b318c0b9de7c4e1577af5c9294 (patch)
treef2be6675429beb12aeaf1f65be1f6353b78deda7 /src/main
parent36a30bd1a2097b6ab45c27bd248cbea4e292499f (diff)
downloadSkyblockMod-7f71df3d99a2c9b318c0b9de7c4e1577af5c9294.tar.gz
SkyblockMod-7f71df3d99a2c9b318c0b9de7c4e1577af5c9294.tar.bz2
SkyblockMod-7f71df3d99a2c9b318c0b9de7c4e1577af5c9294.zip
Fix custom music crash
Re-add line I thought was useless
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/me/Danker/features/CustomMusic.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/me/Danker/features/CustomMusic.java b/src/main/java/me/Danker/features/CustomMusic.java
index 3ea8d1f..717a3ab 100644
--- a/src/main/java/me/Danker/features/CustomMusic.java
+++ b/src/main/java/me/Danker/features/CustomMusic.java
@@ -263,6 +263,7 @@ public class CustomMusic {
public void start() throws UnsupportedAudioFileException, LineUnavailableException, IOException {
try {
+ if (music == null) music = AudioSystem.getClip();
if (!music.isRunning()) {
reset();
shuffle();