From e764fb628f6905a6008e022a6e9571c34062127b Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 14 May 2022 10:51:56 +0800 Subject: + optimise dungeon map loading (idk if you will notice a difference though because it used to be on a seperate thread) --- features/dungeonSolvers/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'features/dungeonSolvers/index.js') diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 03e935b..5b675a7 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -269,6 +269,8 @@ class DungeonSolvers extends Feature { return; } + if (!this.FeatureManager.features["dataLoader"].class.stats.Deaths) return + // Information about the dungeon let deaths = parseInt(this.FeatureManager.features["dataLoader"].class.stats.Deaths.replace("(", "").replace(")", "")); @@ -420,10 +422,8 @@ class DungeonSolvers extends Feature { if (this.bloodCampAssist.getValue()) { for (let skull of this.skulls) { - let skullE = skull.getEntity(); - // renderUtils.drawBoxAtEntity(skull, 255, 0, 0, 0.5, 0.5, ticks) - if (this.eMovingThing[skull.getUUID().toString()] && this.eMovingThing[skull.getUUID().toString()].timeTook) { + let skullE = skull.getEntity(); let startPoint = [skullE[f.posX.Entity], skullE[f.posY.Entity], skullE[f.posZ.Entity]]; let xSpeed2 = (startPoint[0] - this.eMovingThing[skull.getUUID().toString()].startX) / this.eMovingThing[skull.getUUID().toString()].timeTook; -- cgit