From c8b1e594ff64c641b85f93bc7bf72e15d7f32c65 Mon Sep 17 00:00:00 2001 From: ChomeNS <95471003+ChomeNS@users.noreply.github.com> Date: Thu, 29 Jun 2023 17:32:54 +0700 Subject: [PATCH] chomens moment, fixed ,..,,.., --- .../chayapak/chomens_bot/plugins/BossbarManagerPlugin.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java index 6ab0780..ec5efc6 100644 --- a/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java +++ b/src/main/java/land/chipmunk/chayapak/chomens_bot/plugins/BossbarManagerPlugin.java @@ -1,7 +1,6 @@ package land.chipmunk.chayapak.chomens_bot.plugins; import com.github.steveice10.mc.protocol.data.game.BossBarColor; -import com.github.steveice10.mc.protocol.data.game.BossBarDivision; import com.github.steveice10.mc.protocol.packet.ingame.clientbound.ClientboundBossEventPacket; import com.github.steveice10.packetlib.Session; import com.github.steveice10.packetlib.packet.Packet; @@ -12,7 +11,6 @@ import land.chipmunk.chayapak.chomens_bot.data.chat.MutablePlayerListEntry; import land.chipmunk.chayapak.chomens_bot.util.ComponentUtilities; import lombok.Getter; import lombok.Setter; -import net.kyori.adventure.text.Component; import net.kyori.adventure.text.serializer.gson.GsonComponentSerializer; import java.util.HashMap; @@ -122,7 +120,7 @@ public class BossbarManagerPlugin extends Bot.Listener { final BotBossBar botBossBar = get(bossBar.uuid); if (botBossBar != null && !ComponentUtilities.isEqual(botBossBar.title, packet.getTitle())) { - botBossBar.setTitle(bossBar.title, true); + botBossBar.setTitle(botBossBar.title, true); } bossBar.title = packet.getTitle();