From c51359e8930f049aa80c4ca9ed530fde3eac2213 Mon Sep 17 00:00:00 2001 From: Andrew Steinborn Date: Thu, 15 Apr 2021 04:23:59 -0400 Subject: [PATCH] Move away from deprecated percent() method. Also fixed another small nit. --- .../proxy/util/bossbar/AdventureBossBarManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/proxy/src/main/java/com/velocitypowered/proxy/util/bossbar/AdventureBossBarManager.java b/proxy/src/main/java/com/velocitypowered/proxy/util/bossbar/AdventureBossBarManager.java index 3136169dd..cf5e285f0 100644 --- a/proxy/src/main/java/com/velocitypowered/proxy/util/bossbar/AdventureBossBarManager.java +++ b/proxy/src/main/java/com/velocitypowered/proxy/util/bossbar/AdventureBossBarManager.java @@ -215,8 +215,8 @@ public class AdventureBossBarManager implements BossBar.Listener { packet.setAction(com.velocitypowered.proxy.protocol.packet.BossBar.ADD); packet.setName(ProtocolUtils.getJsonChatSerializer(version).serialize(bar.name())); packet.setColor(COLORS_TO_PROTOCOL.get(bar.color())); - packet.setOverlay(bar.overlay().ordinal()); - packet.setPercent(bar.percent()); + packet.setOverlay(OVERLAY_TO_PROTOCOL.get(bar.overlay())); + packet.setPercent(bar.progress()); packet.setFlags(serializeFlags(bar.flags())); return packet; }