another fix lol

This commit is contained in:
Chayapak 2023-07-28 09:45:22 +07:00
parent 31f7f80675
commit e68b3dfc8c

View file

@ -73,7 +73,7 @@ public class SongLoaderRunnable implements Runnable {
name = Paths.get(songUrl.toURI().getPath()).getFileName().toString();
} else {
bytes = Files.readAllBytes(songPath);
name = fileName;
name = !isFolder ? fileName : songPath.getFileName().toString();
}
} catch (Exception e) {
exception = new SongLoaderException(Component.text(e.getMessage()));