fix error currentSong.name is null
or whatever shit that was
This commit is contained in:
parent
f75f76b9d4
commit
cc08c76020
1 changed files with 12 additions and 12 deletions
|
@ -126,6 +126,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return;
|
||||
else ticksUntilPausedBossbar = 20 - (((int) bot.tps.getTickRate()) - 20);
|
||||
|
||||
if (!currentSong.finished()) {
|
||||
BotBossBar bossBar = bot.bossbar.get(bossbarName);
|
||||
|
||||
if (bossBar == null && bot.bossbar.enabled) bossBar = addBossBar();
|
||||
|
@ -140,8 +141,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
if (currentSong.paused || bot.core.isRateLimited()) return;
|
||||
|
||||
handlePlaying();
|
||||
|
||||
if (currentSong.finished()) {
|
||||
} else {
|
||||
if (loop == Loop.CURRENT) {
|
||||
currentSong.loop();
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue