3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-12-25 15:50:19 +01:00

Move away from deprecated percent() method.

Also fixed another small nit.
Dieser Commit ist enthalten in:
Andrew Steinborn 2021-04-15 04:23:59 -04:00
Ursprung 4de71fe942
Commit c51359e893

Datei anzeigen

@ -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;
}