aboutsummaryrefslogtreecommitdiff
path: root/features/cosmetics
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-29 14:36:23 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-29 14:36:23 +0800
commitaea02ec1040ff1155b0b1a1e768f88e3e404b7c0 (patch)
tree59eb749e8aecba4c4764ca4040fc48e5f78bb0ae /features/cosmetics
parent38f72e98a01a6ade00c4e9eae45e7b57679184f2 (diff)
downloadSoopyV2-aea02ec1040ff1155b0b1a1e768f88e3e404b7c0.tar.gz
SoopyV2-aea02ec1040ff1155b0b1a1e768f88e3e404b7c0.tar.bz2
SoopyV2-aea02ec1040ff1155b0b1a1e768f88e3e404b7c0.zip
- networth page
- networth in stat next to name - fix to cosmetic optimisation being disabled for some reason
Diffstat (limited to 'features/cosmetics')
-rw-r--r--features/cosmetics/index.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js
index 55e16fc..1eb6ff8 100644
--- a/features/cosmetics/index.js
+++ b/features/cosmetics/index.js
@@ -50,7 +50,7 @@ class Cosmetics extends Feature {
this.registerStep(false, 60*10, ()=>{
new Thread(()=>{this.loadCosmeticsData.call(this)}).start()
})
- this.registerEvent("renderEntity", this.renderEntity)
+ // this.registerEvent("renderEntity", this.renderEntity)
this.loadedRenderEntity = false
if(global.soopyV2Server.userCosmeticPermissions){
@@ -89,7 +89,7 @@ class Cosmetics extends Feature {
this.cosmeticsData = data
this.playerHasACosmeticA = !!data[Player.getUUID().toString().replace(/-/g,"")]
if(this.playerHasACosmeticA && !this.loadedRenderEntity){
- // this.registerEvent("renderEntity", this.renderEntity)
+ this.registerEvent("renderEntity", this.renderEntity)
this.loadedRenderEntity = true
}
@@ -123,6 +123,7 @@ class Cosmetics extends Feature {
step(){
this.scanForNewCosmetics()
+ console.log(this.loadedCosmetics.length)
}
scanForNewCosmetics(){
this.loadCosmeticsForPlayer(Player)