mirror of
https://github.com/HibiscusMC/HMCCosmetics.git
synced 2025-12-30 20:39:13 +00:00
Remove cosmetic when add overriding cosmetic
This commit is contained in:
@@ -70,6 +70,9 @@ public class CosmeticUser {
|
||||
}
|
||||
|
||||
public void addPlayerCosmetic(Cosmetic cosmetic, Color color) {
|
||||
if (playerCosmetics.containsKey(cosmetic.getSlot())) {
|
||||
removeCosmeticSlot(cosmetic.getSlot());
|
||||
}
|
||||
playerCosmetics.put(cosmetic.getSlot(), cosmetic);
|
||||
if (color != null) colors.put(cosmetic.getSlot(), color);
|
||||
HMCCosmeticsPlugin.getInstance().getLogger().info("addPlayerCosmetic " + cosmetic.getId());
|
||||
|
||||
Reference in New Issue
Block a user