aboutsummaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 21:28:37 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-07-15 21:28:37 +0800
commit7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf (patch)
treee5a90da95bd4dfd36856810fe0d44888127688cc /features
parent42bcdf88fbaf3634dd96716f9eb9ee7172d730e1 (diff)
downloadSoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.tar.gz
SoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.tar.bz2
SoopyV2-7cb9450079ac1d4ca9dbddcccac5bfc16fbd9ccf.zip
+ many bugfixes
Diffstat (limited to 'features')
-rw-r--r--features/dungeonMap/index.js3
-rw-r--r--features/dungeonSolvers/index.js8
-rw-r--r--features/events/index.js11
3 files changed, 14 insertions, 8 deletions
diff --git a/features/dungeonMap/index.js b/features/dungeonMap/index.js
index cdc3ade..ced41d2 100644
--- a/features/dungeonMap/index.js
+++ b/features/dungeonMap/index.js
@@ -138,6 +138,9 @@ class DungeonMap extends Feature {
this.registerEvent("renderPlayerList", () => {
this.renderingPlayerList = true
})
+ this.registerEvent("renderDebug", () => {
+ this.renderingPlayerList = true
+ })
this.registerEvent("guiOpened", (event) => {
if (this.spiritLeapOverlay.getValue()) this.spiritLeapOverlayGui.guiOpened.call(this.spiritLeapOverlayGui, event)
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)
diff --git a/features/events/index.js b/features/events/index.js
index 847de49..9eed7af 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -231,10 +231,13 @@ class Events extends Feature {
let mythMobs = []
this.todoE.forEach(e => {
e = new Entity(e)
- let health = e.getName().removeFormatting().split(" ")[4]?.split("/")[0]
- if (this.MythMobsHP.getValue() && health != 0 && (e.getName().removeFormatting().includes("Exalted") || e.getName().removeFormatting().includes("Stalwart"))) {
- mythMobs.push(e.getName())
- }
+ try {
+ let health = e.getName().removeFormatting().split(" ")[4]?.split("/")[0]
+ if (this.MythMobsHP.getValue() && health != 0 && (e.getName().removeFormatting().includes("Exalted") || e.getName().removeFormatting().includes("Stalwart"))) {
+ mythMobs.push(e.getName())
+ }
+ } catch (e) { }//not mytho mob
+
if (e.getName().toLowerCase().includes("inquis") && Math.abs(e.getY() - Player.getY()) < 10 && Math.abs(e.getX() - Player.getX()) < 10 && Math.abs(e.getZ() - Player.getZ()) < 10) {
let loc = [e.getX(), e.getY() - 1, e.getZ()]
let self = false