diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-23 21:21:56 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2021-11-23 21:21:56 +0800 |
commit | 38b52c027450cb4c26d62a3beb5822c6c607e8c2 (patch) | |
tree | d1edf41d0aea845f763a48d2a1258b06d9c7b40a /features/dungeonSolvers | |
parent | 5139209b268a6f34b2fa65b3963f451a4e316ce6 (diff) | |
download | SoopyV2-38b52c027450cb4c26d62a3beb5822c6c607e8c2.tar.gz SoopyV2-38b52c027450cb4c26d62a3beb5822c6c607e8c2.tar.bz2 SoopyV2-38b52c027450cb4c26d62a3beb5822c6c607e8c2.zip |
Add basic performance tracking, will make this a dedicated gui sometime
Diffstat (limited to 'features/dungeonSolvers')
-rw-r--r-- | features/dungeonSolvers/index.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 0d9a825..bdeff6e 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -47,7 +47,8 @@ class DungeonSolvers extends Feature { this.registerEvent("renderOverlay", this.renderHud) this.registerEvent("renderWorld", this.renderWorld) - this.registerEvent("renderEntity", this.renderEntity) + // this.registerEvent("renderEntity", this.renderEntity) + this.renderEntityEvent = undefined } renderWorld(ticks){ @@ -135,6 +136,16 @@ class DungeonSolvers extends Feature { } }) } + + if(this.lividData.correctLividEntity){ + if(!this.renderEntityEvent){ + this.renderEntityEvent = this.registerEvent("renderEntity", this.renderEntity) + } + }else{ + if(this.renderEntityEvent){ + this.unregisterEvent(this.renderEntityEvent) + } + } } initVariables(){ |