mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 02:31:43 +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
|
@Override
|
||||||
public void setColor(BarColor color) {
|
public void setColor(BarColor color) {
|
||||||
handle.color = convertColor(color);
|
handle.color = convertColor(color);
|
||||||
handle.sendUpdate(PacketPlayOutBoss::createUpdatePropertiesPacket);
|
handle.sendUpdate(PacketPlayOutBoss::createUpdateStylePacket);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -125,7 +125,7 @@ public class CraftBossBar implements BossBar {
|
|||||||
@Override
|
@Override
|
||||||
public void setStyle(BarStyle style) {
|
public void setStyle(BarStyle style) {
|
||||||
handle.overlay = convertStyle(style);
|
handle.overlay = convertStyle(style);
|
||||||
handle.sendUpdate(PacketPlayOutBoss::createUpdatePropertiesPacket);
|
handle.sendUpdate(PacketPlayOutBoss::createUpdateStylePacket);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user