From 9efaf2250303d44089b2993af6f532921919f2fa Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sun, 8 May 2022 10:33:14 +0800 Subject: + inquis waypoints correctly dissapear when u dig a burrow --- features/dungeonSolvers/index.js | 14 +++++++------- features/events/index.js | 2 ++ metadata.json | 4 ++-- 3 files changed, 11 insertions(+), 9 deletions(-) diff --git a/features/dungeonSolvers/index.js b/features/dungeonSolvers/index.js index a0353e3..64245fe 100644 --- a/features/dungeonSolvers/index.js +++ b/features/dungeonSolvers/index.js @@ -167,12 +167,12 @@ class DungeonSolvers extends Feature { 7: 360, }; - this.registerStep(true, 2, this.step).registeredWhen(()=>this.isInDungeon()); - this.registerStep(true, 10, this.step2).registeredWhen(()=>this.isInDungeon()); + this.registerStep(true, 2, this.step).registeredWhen(() => this.isInDungeon()); + this.registerStep(true, 10, this.step2).registeredWhen(() => this.isInDungeon()); this.registerEvent("worldLoad", this.onWorldLoad); - this.registerEvent("renderOverlay", this.renderHud).registeredWhen(()=>this.isInDungeon()); - this.registerEvent("renderWorld", this.renderWorld).registeredWhen(()=>this.isInDungeon()); + this.registerEvent("renderOverlay", this.renderHud).registeredWhen(() => this.isInDungeon()); + this.registerEvent("renderWorld", this.renderWorld).registeredWhen(() => this.isInDungeon()); this.bloodOpenedBonus = false; this.goneInBonus = false; @@ -200,7 +200,7 @@ class DungeonSolvers extends Feature { } } } - }).registeredWhen(()=>this.isInDungeon()) + }).registeredWhen(() => this.isInDungeon()) let mimicDeadMessages = ["$SKYTILS-DUNGEON-SCORE-MIMIC$", "Mimic Killed!", "Mimic Dead!", "Mimic dead!"] this.registerChat("&r&9Party &8> ${msg}", (msg) => { mimicDeadMessages.forEach(dmsg => { @@ -242,7 +242,7 @@ class DungeonSolvers extends Feature { } }); - this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(()=>this.isInDungeon()); + this.registerForge(net.minecraftforge.event.entity.EntityJoinWorldEvent, this.entityJoinWorldEvent).registeredWhen(() => this.isInDungeon()); // this.registerEvent("renderEntity", this.renderEntity) this.renderEntityEvent = undefined; @@ -711,7 +711,7 @@ class DungeonSolvers extends Feature { } step() { - if (!TabList || !TabList.getNames()) return + if (!Player.getX()) return World.getAllPlayers().forEach((p) => { this.nameToUuid[p.getName().toLowerCase()] = p.getUUID().toString() }) diff --git a/features/events/index.js b/features/events/index.js index 309a788..61ba36e 100644 --- a/features/events/index.js +++ b/features/events/index.js @@ -190,6 +190,7 @@ class Events extends Feature { e = new Entity(e) 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) { socketConnection.sendInquisData({ loc: [Math.round(Player.getX()), Math.round(Player.getY()), Math.round(Player.getZ())] }); + this.inquisWaypointSpawned = true } }) this.todoE = [] @@ -383,6 +384,7 @@ class Events extends Feature { burrialClicked() { if (this.inquisWaypointSpawned) { socketConnection.sendInquisData({ loc: null }); + this.inquisWaypointSpawned = false } if (!this.showingWaypoints) return diff --git a/metadata.json b/metadata.json index 99bd72a..b81569f 100644 --- a/metadata.json +++ b/metadata.json @@ -5,8 +5,8 @@ "entry": "index.js", "description": "SoopyV2", "name": "SoopyV2", - "version": "2.1.69", - "versionId": 196, + "version": "2.1.70", + "versionId": 197, "requires": [ "soopyApis", "soopyAddonsData", -- cgit