From c71b4f83abb2697781f8e6eafa8ad35f924fbdf7 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 1 Mar 2022 21:25:13 +0800 Subject: many changes (will list in a bit) --- features/cosmetics/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'features/cosmetics') diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js index eeee12e..c5ff21e 100644 --- a/features/cosmetics/index.js +++ b/features/cosmetics/index.js @@ -48,9 +48,9 @@ class Cosmetics extends Feature { this.registerEvent("playerLeft", this.playerLeft) this.registerEvent("worldLoad", this.worldLoad) this.registerStep(false, 2, this.step) - this.registerStep(false, 60*10, ()=>{ - new Thread(()=>{this.loadCosmeticsData.call(this)}).start() - }) + // this.registerStep(false, 60*10, ()=>{ + // new Thread(()=>{this.loadCosmeticsData.call(this)}).start() + // }) // this.registerEvent("renderEntity", this.renderEntity) this.loadedRenderEntity = false @@ -90,7 +90,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("postRenderEntity", this.renderEntity) this.loadedRenderEntity = true } -- cgit