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

fix: wardrobe not properly spawning in backpacks

This commit is contained in:
LoJoSho
2023-08-22 09:49:19 -05:00
parent 8ec6a87b94
commit c0014476fd

View File

@@ -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;