From 686c7d469afe2174c0adeace82ee9c1d34003941 Mon Sep 17 00:00:00 2001 From: Chip <65827213+ChipmunkMC@users.noreply.github.com> Date: Fri, 24 Feb 2023 17:56:35 -0500 Subject: [PATCH] chip mc moment (music loadign is fixed now) --- .../java/land/chipmunk/chipmunkbot/song/SongLoaderThread.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/land/chipmunk/chipmunkbot/song/SongLoaderThread.java b/src/main/java/land/chipmunk/chipmunkbot/song/SongLoaderThread.java index 90a14fb..f2183c2 100644 --- a/src/main/java/land/chipmunk/chipmunkbot/song/SongLoaderThread.java +++ b/src/main/java/land/chipmunk/chipmunkbot/song/SongLoaderThread.java @@ -53,8 +53,8 @@ public class SongLoaderThread extends Thread { bytes = Files.readAllBytes(songPath.toPath()); name = songPath.getName(); } - } catch (Exception exception) { - exception = new SongLoaderException(Component.text(exception.getMessage()), exception); + } catch (Exception e) { + exception = new SongLoaderException(Component.text(e.getMessage()), e); return; }