aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-06-25 22:25:39 +0800
commit24f2fddb6f70576bc101021637014af1bdbb68b6 (patch)
treec65d9c01a6d475e4737fc54ca67ae12e3c7d8fe3 /features/cosmetics/index.js
parentb1bc366e52cf719f0e3f01719fd787e7873baf84 (diff)
downloadSoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.gz
SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.tar.bz2
SoopyV2-24f2fddb6f70576bc101021637014af1bdbb68b6.zip
+ finish performance thing (mostly)
+ optimisations for slayer hide 0hp nametags
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
}