fart?!?!?!

This commit is contained in:
Chayapak 2023-04-22 20:23:54 +07:00
parent d618b241eb
commit ea8f2cfe8c

View file

@ -55,6 +55,22 @@ public class SongLoaderThread extends Thread {
return;
}
try {
if (name.endsWith(".mid") || name.endsWith(".midi")) {
song = MidiConverter.getSongFromBytes(bytes, name, bot);
return;
}
if (name.endsWith(".nbs")) {
song = NBSConverter.getSongFromBytes(bytes, name, bot);
return;
}
} catch (Exception e) {
e.printStackTrace();
exception = new SongLoaderException(Component.translatable("Invalid format"));
}
try {
song = MidiConverter.getSongFromBytes(bytes, name, bot);
} catch (Exception e) {