refactor: remove useless exception throwing when song loading failed

This commit is contained in:
ChomeNS
2025-03-17 14:10:09 +07:00
parent e02de9232d
commit dd0d80f265

View File

@@ -158,8 +158,7 @@ public class SongLoaderThread extends Thread {
}
}
private void failed() {
bot.logger.error(exception);
private void failed () {
bot.chat.tellraw(Component.translatable("Failed to load song: %s", exception.message).color(NamedTextColor.RED));
bot.music.loaderThread = null;
}