From 24f2fddb6f70576bc101021637014af1bdbb68b6 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 25 Jun 2022 22:25:39 +0800 Subject: + finish performance thing (mostly) + optimisations for slayer hide 0hp nametags --- features/cosmetics/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'features/cosmetics') 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 } -- cgit