9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 03:49:19 +00:00

Changed sending packet to broadcast packet

This commit is contained in:
HeroBrineGoat
2022-01-21 18:26:30 -05:00
parent 3551de2cd3
commit f7d8a7205f

View File

@@ -177,15 +177,9 @@ public class User {
final ProtocolManager protocolManager = ProtocolLibrary.getProtocolManager();
for (final Player p : Bukkit.getOnlinePlayers()) {
try {
protocolManager.sendServerPacket(p, armorPacket);
protocolManager.sendServerPacket(p, metaContainer);
protocolManager.sendServerPacket(p, rotationPacket);
} catch (final InvocationTargetException exception) {
exception.printStackTrace();
}
}
protocolManager.broadcastServerPacket(armorPacket);
protocolManager.broadcastServerPacket(metaContainer);
protocolManager.broadcastServerPacket(rotationPacket);
}
public void despawnAttached() {