forked from ChomeNS/chomens-bot-java
another fix lol
This commit is contained in:
parent
31f7f80675
commit
e68b3dfc8c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ public class SongLoaderRunnable implements Runnable {
|
||||||
name = Paths.get(songUrl.toURI().getPath()).getFileName().toString();
|
name = Paths.get(songUrl.toURI().getPath()).getFileName().toString();
|
||||||
} else {
|
} else {
|
||||||
bytes = Files.readAllBytes(songPath);
|
bytes = Files.readAllBytes(songPath);
|
||||||
name = fileName;
|
name = !isFolder ? fileName : songPath.getFileName().toString();
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
exception = new SongLoaderException(Component.text(e.getMessage()));
|
exception = new SongLoaderException(Component.text(e.getMessage()));
|
||||||
|
|
Loading…
Reference in a new issue