forked from ChomeNS/chomens-bot-java
small fixes or big idk
This commit is contained in:
parent
b537cabbe0
commit
6605dec055
2 changed files with 3 additions and 3 deletions
|
@ -70,9 +70,9 @@ public class BossbarManagerPlugin extends Bot.Listener {
|
||||||
final BotBossBar botBossBar = get(bossBar.title);
|
final BotBossBar botBossBar = get(bossBar.title);
|
||||||
|
|
||||||
if (botBossBar != null && botBossBar.color != packet.getColor()) {
|
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()) {
|
} else if (botBossBar != null && botBossBar.division != packet.getDivision()) {
|
||||||
botBossBar.setDivision(bossBar.division, true);
|
botBossBar.setDivision(botBossBar.division, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
bossBar.color = packet.getColor();
|
bossBar.color = packet.getColor();
|
||||||
|
|
|
@ -112,7 +112,7 @@ public class MusicPlayerPlugin extends Bot.Listener {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return;
|
if (currentSong.paused && ticksUntilPausedBossbar-- < 0) return;
|
||||||
else ticksUntilPausedBossbar = 20;
|
else ticksUntilPausedBossbar = 20 + (((int) bot.tps().getTickRate()) - 20);
|
||||||
|
|
||||||
BotBossBar bossBar = bot.bossbar().get(bossbarName);
|
BotBossBar bossBar = bot.bossbar().get(bossbarName);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue