aboutsummaryrefslogtreecommitdiff
path: root/features/dungeonSolvers/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-14 10:51:56 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-05-14 10:51:56 +0800
commite764fb628f6905a6008e022a6e9571c34062127b (patch)
tree1557c2e90693cd2236757b52409029c8b1f7dc5e /features/dungeonSolvers/index.js
parent51cb47c97c3ddba588c73c61c679500fe8f4277d (diff)
downloadSoopyV2-e764fb628f6905a6008e022a6e9571c34062127b.tar.gz
SoopyV2-e764fb628f6905a6008e022a6e9571c34062127b.tar.bz2
SoopyV2-e764fb628f6905a6008e022a6e9571c34062127b.zip
+ optimise dungeon map loading (idk if you will notice a difference though because it used to be on a seperate thread)
Diffstat (limited to 'features/dungeonSolvers/index.js')
-rw-r--r--features/dungeonSolvers/index.js6
1 files changed, 3 insertions, 3 deletions
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;