diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-17 08:25:03 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-17 08:25:03 +0800 |
commit | 84c0f2e026ebfa9017dacc1f8bfde9647315392a (patch) | |
tree | 5ec9dfc5597b65f8c9480d3495f81fc624f427f7 /features/cosmetics/index.js | |
parent | b0a76fb4e93be9356d947e1b29a08804de76b870 (diff) | |
download | SoopyV2-84c0f2e026ebfa9017dacc1f8bfde9647315392a.tar.gz SoopyV2-84c0f2e026ebfa9017dacc1f8bfde9647315392a.tar.bz2 SoopyV2-84c0f2e026ebfa9017dacc1f8bfde9647315392a.zip |
cosmetic texture changes
Diffstat (limited to 'features/cosmetics/index.js')
-rw-r--r-- | features/cosmetics/index.js | 8 |
1 files changed, 6 insertions, 2 deletions
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 @@ /// <reference types="../../../CTAutocomplete" /> /// <reference lib="es2015" /> 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] |