aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-27 04:02:47 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-03-27 04:02:47 +0800
commitb94794a3de8827f4bddb5251b010dc32943d79a1 (patch)
tree270b5b8ca4b85677cca1199aecd0268e211de678 /features/cosmetics/index.js
parent61f813aa1ab67ffcf0be66e6690c04a1c501c21e (diff)
downloadSoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.tar.gz
SoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.tar.bz2
SoopyV2-b94794a3de8827f4bddb5251b010dc32943d79a1.zip
fixes + make diana retry untill it works
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 826742a..ec8a094 100644
--- a/features/cosmetics/index.js
+++ b/features/cosmetics/index.js
@@ -61,7 +61,7 @@ class Cosmetics extends Feature {
// })
// this.registerEvent("renderEntity", this.renderEntity)
- if(global.soopyV2Server.userCosmeticPermissions){
+ if(global.soopyV2Server && global.soopyV2Server.userCosmeticPermissions){
this.updateUserCosmeticPermissionSettings()
}
}