aboutsummaryrefslogtreecommitdiff
path: root/src/features/dungeonSolvers
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-10-04 21:23:48 +0800
commit2d463dc118b0d73605906ae0c2e4419bf39e8571 (patch)
treeda97464dadad112db7975c35fa931b4bd5ee9be6 /src/features/dungeonSolvers
parent3a8cc7cc26ac3b48734b167d7ea2a6fef66cd513 (diff)
downloadSoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.gz
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.tar.bz2
SoopyV2-2d463dc118b0d73605906ae0c2e4419bf39e8571.zip
+ fix game freeze on first dungeon of the day
+ (potential) fix memory leak when doing lots of /ct reload + add seperate setting for powder info on hud to rest of powder features
Diffstat (limited to 'src/features/dungeonSolvers')
-rw-r--r--src/features/dungeonSolvers/index.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/features/dungeonSolvers/index.js b/src/features/dungeonSolvers/index.js
index 787879a..4472d95 100644
--- a/src/features/dungeonSolvers/index.js
+++ b/src/features/dungeonSolvers/index.js
@@ -1063,7 +1063,7 @@ class DungeonSolvers extends Feature {
}
addBlaze(blaze) {
- if (!this.FeatureManager.features["dataLoader"].class.dungeonFloor) return;
+ if (!this.FeatureManager.features["dataLoader"] || !this.FeatureManager.features["dataLoader"].class.dungeonFloor) return;
if (this.blazeX === -1) {
this.blazes.push(blaze);
let locs = {};
@@ -1141,7 +1141,7 @@ class DungeonSolvers extends Feature {
if (end === "[✔]") this.completedPuzzleCount++;
});
- if (this.lividFindEnabled.getValue() && (this.FeatureManager.features["dataLoader"].class.dungeonFloor === "F5" || this.FeatureManager.features["dataLoader"].class.dungeonFloor === "M5")) {
+ if (this.FeatureManager.features["dataLoader"] && this.lividFindEnabled.getValue() && (this.FeatureManager.features["dataLoader"].class.dungeonFloor === "F5" || this.FeatureManager.features["dataLoader"].class.dungeonFloor === "M5")) {
let type = World.getBlockAt(3, 108, 30).getMetadata();
let typeReplace = {