diff options
Diffstat (limited to 'features/dungeonSolvers/index.js')
-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(){ |