diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-28 17:19:56 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-28 17:19:56 +0800 |
commit | 678722bc8a02a6a915a83af509128686b888513d (patch) | |
tree | 46f9d9780b583536cbc35be386a29af29233b1e2 /features/cosmetics/index.js | |
parent | b6063423547b4af9a11bbc78595e40073b52d5b7 (diff) | |
download | SoopyV2-678722bc8a02a6a915a83af509128686b888513d.tar.gz SoopyV2-678722bc8a02a6a915a83af509128686b888513d.tar.bz2 SoopyV2-678722bc8a02a6a915a83af509128686b888513d.zip |
fix soopy wings not hiding essentials wings since essentials update
Diffstat (limited to 'features/cosmetics/index.js')
-rw-r--r-- | features/cosmetics/index.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js index dcac5e9..7c09bce 100644 --- a/features/cosmetics/index.js +++ b/features/cosmetics/index.js @@ -226,7 +226,7 @@ class Cosmetics extends Feature { restoreEssentialCosmetics() { this.hiddenEssentialCosmetics.forEach(cosmetic => { - cosmetic.isHidden = false + setField(cosmetic, "showModel", true) }) this.hiddenEssentialCosmetics = [] } @@ -259,4 +259,13 @@ let instance = new Cosmetics() module.exports = { class: instance +} + +function setField(e, field, value) { + + let field2 = e.class.getDeclaredField(field); + + field2.setAccessible(true) + + return field2.set(e, value) }
\ No newline at end of file |