From e2ee55bab4d1fad0f37b79ec40b4a58709e66d76 Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Tue, 16 May 2023 14:17:41 -0500 Subject: [PATCH] fix: cosmetic armor updating when a player is emoting --- .../hmccosmetics/cosmetic/types/CosmeticArmorType.java | 1 + 1 file changed, 1 insertion(+) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticArmorType.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticArmorType.java index cebca21e..b6c5ef70 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticArmorType.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/cosmetic/types/CosmeticArmorType.java @@ -28,6 +28,7 @@ public class CosmeticArmorType extends Cosmetic { public void update(@NotNull CosmeticUser user) { Player player = Bukkit.getPlayer(user.getUniqueId()); if (player == null) return; + if (user.getUserEmoteManager().isPlayingEmote()) return; // There has to be a better way of doing this... ItemStack cosmeticItem = user.getUserCosmeticItem(this); if (equipSlot.equals(EquipmentSlot.OFF_HAND)) { if (!player.getInventory().getItemInOffHand().getType().isAir()) return;