mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-25 01:31:29 +01:00
#869: Fix BossBar setColor and setStyle updates
By: Eric Su <ericsu14@hotmail.com>
This commit is contained in:
parent
0747934cc1
commit
d2c0fcf0df
@ -114,7 +114,7 @@ public class CraftBossBar implements BossBar {
|
||||
@Override
|
||||
public void setColor(BarColor color) {
|
||||
handle.color = convertColor(color);
|
||||
handle.sendUpdate(PacketPlayOutBoss::createUpdatePropertiesPacket);
|
||||
handle.sendUpdate(PacketPlayOutBoss::createUpdateStylePacket);
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -125,7 +125,7 @@ public class CraftBossBar implements BossBar {
|
||||
@Override
|
||||
public void setStyle(BarStyle style) {
|
||||
handle.overlay = convertStyle(style);
|
||||
handle.sendUpdate(PacketPlayOutBoss::createUpdatePropertiesPacket);
|
||||
handle.sendUpdate(PacketPlayOutBoss::createUpdateStylePacket);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user