From 84c0f2e026ebfa9017dacc1f8bfde9647315392a Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Wed, 17 Nov 2021 08:25:03 +0800 Subject: cosmetic texture changes --- features/cosmetics/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'features/cosmetics/index.js') diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js index 20477ce..d519351 100644 --- a/features/cosmetics/index.js +++ b/features/cosmetics/index.js @@ -1,7 +1,7 @@ /// /// import Feature from "../../featureClass/class"; -import DragonWings from "./dragonWings" +import DragonWings from "./cosmetic/dragon/dragonWings" import Toggle from "../settings/settingThings/toggle" const Essential = Java.type("gg.essential.Essential") const EssentialCosmeticSlot = Java.type("gg.essential.cosmetics.CosmeticSlot") @@ -129,7 +129,11 @@ class Cosmetics extends Feature { } shouldPlayerHaveCosmetic(player, cosmetic){ - return !!this.cosmeticsData[player.getUUID().toString().replace(/-/g,"")]?.[cosmetic] + if(!!this.cosmeticsData[player.getUUID().toString().replace(/-/g,"")]?.[cosmetic]){ + if(!this.getPlayerCosmeticSettings(player, cosmetic).enabled) return false + return true + } + return false } getPlayerCosmeticSettings(player, cosmetic){ return this.cosmeticsData[player.getUUID().toString().replace(/-/g,"")]?.[cosmetic] -- cgit