aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/commands/CustomMusicCommand.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-09-02 16:24:39 -0400
committerbowser0000 <bowser0000@gmail.com>2021-09-02 16:24:39 -0400
commitaa78d52025faa74568ccdb3d299c0eb51f29aa90 (patch)
treec638387431c1131cfbcd1134b1faf1bd8584537c /src/main/java/me/Danker/commands/CustomMusicCommand.java
parent948058741199d41b1e5e76970da28d45e166c244 (diff)
downloadSkyblockMod-aa78d52025faa74568ccdb3d299c0eb51f29aa90.tar.gz
SkyblockMod-aa78d52025faa74568ccdb3d299c0eb51f29aa90.tar.bz2
SkyblockMod-aa78d52025faa74568ccdb3d299c0eb51f29aa90.zip
Reduce memory issues with custom music
Diffstat (limited to 'src/main/java/me/Danker/commands/CustomMusicCommand.java')
-rw-r--r--src/main/java/me/Danker/commands/CustomMusicCommand.java9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/main/java/me/Danker/commands/CustomMusicCommand.java b/src/main/java/me/Danker/commands/CustomMusicCommand.java
index c07ab45..d21d08e 100644
--- a/src/main/java/me/Danker/commands/CustomMusicCommand.java
+++ b/src/main/java/me/Danker/commands/CustomMusicCommand.java
@@ -63,13 +63,8 @@ public class CustomMusicCommand extends CommandBase {
player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Stopped custom music."));
break;
case "reload":
- try {
- CustomMusic.init(DankersSkyblockMod.configDirectory);
- player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Reloaded custom music."));
- } catch (IOException | LineUnavailableException | UnsupportedAudioFileException e) {
- player.addChatMessage(new ChatComponentText(DankersSkyblockMod.ERROR_COLOUR + "An error occurred while trying to reload music."));
- e.printStackTrace();
- }
+ CustomMusic.init(DankersSkyblockMod.configDirectory);
+ player.addChatMessage(new ChatComponentText(DankersSkyblockMod.MAIN_COLOUR + "Reloaded custom music."));
break;
case "volume":
if (arg1.length < 3) {