9
0
mirror of https://github.com/HibiscusMC/HMCCosmetics.git synced 2025-12-29 11:59:21 +00:00

fix: send empty equipment packet on emote for player

This commit is contained in:
LoJoSho
2023-06-19 13:03:19 -05:00
parent 988ec04a2e
commit 5d782bb6a3

View File

@@ -44,9 +44,9 @@ public class UserEmoteModel extends PlayerModel {
Player player = user.getPlayer();
List<Player> viewer = Collections.singletonList(user.getPlayer());
List<Player> outsideViewers = PacketManager.getViewers(player.getLocation());
outsideViewers.remove(player);
// Send equipment packet to the player as well (Fixes Optifine still rendering armor when emoting)
PacketManager.equipmentSlotUpdate(player, true, outsideViewers);
outsideViewers.remove(player);
Location newLocation = player.getLocation().clone();
newLocation.setPitch(0);