small fixes or big idk

This commit is contained in:
Chayapak 2023-06-19 18:26:09 +07:00
parent b537cabbe0
commit 6605dec055
2 changed files with 3 additions and 3 deletions

View file

@ -70,9 +70,9 @@ public class BossbarManagerPlugin extends Bot.Listener {
final BotBossBar botBossBar = get(bossBar.title);
if (botBossBar != null && botBossBar.color != packet.getColor()) {
botBossBar.setColor(bossBar.color, true);
botBossBar.setColor(botBossBar.color, true);
} else if (botBossBar != null && botBossBar.division != packet.getDivision()) {
botBossBar.setDivision(bossBar.division, true);
botBossBar.setDivision(botBossBar.division, true);
}
bossBar.color = packet.getColor();

View file

@ -112,7 +112,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
}
if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return;
else ticksUntilPausedBossbar = 20;
else ticksUntilPausedBossbar = 20 + (((int) bot.tps().getTickRate()) - 20);
BotBossBar bossBar = bot.bossbar().get(bossbarName);