From c0014476fd8478efece741913c399fec99d7b2fc Mon Sep 17 00:00:00 2001 From: LoJoSho Date: Tue, 22 Aug 2023 09:49:19 -0500 Subject: [PATCH] fix: wardrobe not properly spawning in backpacks --- .../com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java index 0c7b00ec..b627f454 100644 --- a/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java +++ b/common/src/main/java/com/hibiscusmc/hmccosmetics/user/manager/UserEntity.java @@ -42,7 +42,7 @@ public class UserEntity { for (Player player : players) { CosmeticUser user = CosmeticUsers.getUser(player); - if (user != null && user.isInWardrobe()) { // Fixes issue where players in wardrobe would see other players cosmetics if they were not in wardrobe + if (user != null && owner != user.getUniqueId() && user.isInWardrobe()) { // Fixes issue where players in wardrobe would see other players cosmetics if they were not in wardrobe removePlayers.add(player); PacketManager.sendEntityDestroyPacket(ids, List.of(player)); continue;