aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/cosmetics/index.js')
-rw-r--r--features/cosmetics/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js
index ffe25dc..6c832ef 100644
--- a/features/cosmetics/index.js
+++ b/features/cosmetics/index.js
@@ -194,7 +194,7 @@ class Cosmetics extends Feature {
}
shouldPlayerHaveCosmetic(player, cosmetic) {
- if (!!this.cosmeticsData[player.getUUID().toString().replace(/-/g, "")]?.[cosmetic]) {
+ if (this.getPlayerCosmeticSettings(player, cosmetic)) {
if (!this.getPlayerCosmeticSettings(player, cosmetic).enabled) return false
return true
}