forked from ChomeNS/chomens-bot-java
FIX?!?!?!?
This commit is contained in:
parent
aa6a2125c0
commit
5a0483b139
1 changed files with 1 additions and 7 deletions
|
@ -113,12 +113,6 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
currentSong.play();
|
||||
}
|
||||
|
||||
if (
|
||||
bot.options().coreRateLimit().limit() != 0 &&
|
||||
bot.core().commandsPerSecond() > bot.options().coreRateLimit().limit()
|
||||
) currentSong.pause();
|
||||
else currentSong.play();
|
||||
|
||||
if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return;
|
||||
else ticksUntilPausedBossbar = 20 - (((int) bot.tps().getTickRate()) - 20);
|
||||
|
||||
|
@ -136,7 +130,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
|||
nextBossBarUpdate = currentTime + 500;
|
||||
}
|
||||
|
||||
if (currentSong.paused) return;
|
||||
if (currentSong.paused || bot.core().commandsPerSecond() > bot.options().coreRateLimit().limit()) return;
|
||||
|
||||
handlePlaying();
|
||||
|
||||
|
|
Loading…
Reference in a new issue