geforkt von Mirrors/Velocity
Move away from deprecated percent() method.
Also fixed another small nit.
Dieser Commit ist enthalten in:
Ursprung
4de71fe942
Commit
c51359e893
@ -215,8 +215,8 @@ public class AdventureBossBarManager implements BossBar.Listener {
|
|||||||
packet.setAction(com.velocitypowered.proxy.protocol.packet.BossBar.ADD);
|
packet.setAction(com.velocitypowered.proxy.protocol.packet.BossBar.ADD);
|
||||||
packet.setName(ProtocolUtils.getJsonChatSerializer(version).serialize(bar.name()));
|
packet.setName(ProtocolUtils.getJsonChatSerializer(version).serialize(bar.name()));
|
||||||
packet.setColor(COLORS_TO_PROTOCOL.get(bar.color()));
|
packet.setColor(COLORS_TO_PROTOCOL.get(bar.color()));
|
||||||
packet.setOverlay(bar.overlay().ordinal());
|
packet.setOverlay(OVERLAY_TO_PROTOCOL.get(bar.overlay()));
|
||||||
packet.setPercent(bar.percent());
|
packet.setPercent(bar.progress());
|
||||||
packet.setFlags(serializeFlags(bar.flags()));
|
packet.setFlags(serializeFlags(bar.flags()));
|
||||||
return packet;
|
return packet;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren