diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 21:28:37 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-07-15 21:28:37 +0800 |
commit | 7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf (patch) | |
tree | e5a90da95bd4dfd36856810fe0d44888127688cc /features/dungeonSolvers/index.js | |
parent | 42bcdf88fbaf3634dd96716f9eb9ee7172d730e1 (diff) | |
download | SoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.tar.gz SoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.tar.bz2 SoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.zip |
+ many bugfixes
Diffstat (limited to 'features/dungeonSolvers/index.js')
-rw-r--r-- | features/dungeonSolvers/index.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index 48c4766..2d3c4b7 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -177,6 +177,7 @@ class DungeonSolvers extends Feature { 6: 120, 7: 360, }; + this.renderEntityEvent = this.registerEvent("renderEntity", this.renderEntity); this.registerStep(true, 2, this.stepNotDung).registeredWhen(() => !this.isInDungeon()); this.registerStep(true, 2, this.step).registeredWhen(() => this.isInDungeon()); @@ -262,7 +263,6 @@ class DungeonSolvers extends Feature { this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDungeon() && !this.inBoss); - this.renderEntityEvent = this.registerEvent("renderEntity", this.renderEntity); this.onWorldLoad(); @@ -561,8 +561,8 @@ class DungeonSolvers extends Feature { scanFirstDeathForSpiritPet(username) { if (this.firstDeath) return this.firstDeath = true - - let uuid = this.nameToUuid[username.toLowerCase()].replace(/-/g, "") + if (!this.nameToUuid[username.toLowerCase()]) return + let uuid = this.nameToUuid[username.toLowerCase()]?.replace(/-/g, "") if (this.FeatureManager.features["globalSettings"] && this.FeatureManager.features["globalSettings"].class.apiKeySetting.getValue()) { fetch(`https://api.hypixel.net/skyblock/profiles?key=${this.FeatureManager.features["globalSettings"].class.apiKeySetting.getValue()}&uuid=${uuid}`).json(data => { @@ -734,7 +734,7 @@ class DungeonSolvers extends Feature { this.spiritBearSpawnElement.setText(""); } if (this.scoreCalculation.getValue()) this.calculateDungeonScore(); - if (this.bloodCampAssist.getValue()) { + if (this.bloodCampAssist.getValue() && this.skulls) { this.skulls.forEach((skull) => { let skullE = skull.getEntity(); // renderUtils.drawBoxAtEntity(skull, 255, 0, 0, 0.5, 0.5, ticks) |