mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2026-01-03 06:12:20 +00:00
fix for death cosmetics
This commit is contained in:
@@ -135,8 +135,9 @@ public class CosmeticUser {
|
||||
}
|
||||
|
||||
public void removeCosmetics() {
|
||||
for (Cosmetic cosmetic : getCosmetic()) {
|
||||
removeCosmeticSlot(cosmetic.getSlot());
|
||||
// Small optimization could be made, but Concurrent modification prevents us from both getting and removing
|
||||
for (CosmeticSlot slot : CosmeticSlot.values()) {
|
||||
removeCosmeticSlot(slot);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user