From 133f781e0838445bca104490c8ffe0b6398a876e Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Tue, 8 Mar 2022 21:20:21 +0800 Subject: update meta + make dungeon map sync player locations thru socket --- features/cosmetics/index.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'features/cosmetics/index.js') diff --git a/features/cosmetics/index.js b/features/cosmetics/index.js index d4b9fcb..e1879d0 100644 --- a/features/cosmetics/index.js +++ b/features/cosmetics/index.js @@ -50,7 +50,7 @@ class Cosmetics extends Feature { this.registerEvent("playerLeft", this.playerLeft) this.registerEvent("worldLoad", this.worldLoad) this.registerStep(false, 2, this.step) - this.registerEvent('worldUnload', ()=>{ + this.registerEvent('gameUnload', ()=>{ if(this.postRenderEntityTrigger){ this.postRenderEntityTrigger.unregister() this.postRenderEntityTrigger = undefined @@ -60,7 +60,6 @@ class Cosmetics extends Feature { // new Thread(()=>{this.loadCosmeticsData.call(this)}).start() // }) // this.registerEvent("renderEntity", this.renderEntity) - this.loadedRenderEntity = false if(global.soopyV2Server.userCosmeticPermissions){ this.updateUserCosmeticPermissionSettings() @@ -78,8 +77,8 @@ class Cosmetics extends Feature { } renderWorld(ticks){ - for(let cosmetic of this.loadedCosmetics){ - cosmetic.onRenderEntity(ticks, false) + for(let i = 0;i{ if(ticks !== 1) return @@ -99,7 +98,6 @@ class Cosmetics extends Feature { } } }) - this.loadedRenderEntity = true } this.scanForNewCosmetics() -- cgit