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:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user