From fa3fd389d50ad5dfc9b00f485ae85da28fb96a25 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Sat, 10 Sep 2022 10:19:43 +0800 Subject: + fix bugs with new guess system --- features/nether/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'features/nether/index.js') diff --git a/features/nether/index.js b/features/nether/index.js index 9c346f6..ec2ef08 100644 --- a/features/nether/index.js +++ b/features/nether/index.js @@ -3,7 +3,7 @@ import { f, m } from "../../../mappings/mappings"; import Feature from "../../featureClass/class"; import socketConnection from "../../socketConnection"; -import { drawBoxAtBlock, drawBoxAtEntity, drawCoolWaypoint, drawLine, drawLineWithDepth, renderBeaconBeam } from "../../utils/renderUtils"; +import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawBoxAtEntity, drawCoolWaypoint, drawLine, drawLineWithDepth, renderBeaconBeam } from "../../utils/renderUtils"; import ToggleSetting from "../settings/settingThings/toggle"; const MCBlock = Java.type("net.minecraft.block.Block"); const ArmorStand = Java.type("net.minecraft.entity.item.EntityArmorStand") @@ -122,6 +122,15 @@ class Nether extends Feature { this.controlLoc = undefined this.controlSkeleton = undefined }) + this.registerEvent("worldLoad", () => { + this.inSwiftness = false + this.lastBlock = undefined + this.inDiscipline = false + + this.controlLocLast = undefined + this.controlLoc = undefined + this.controlSkeleton = undefined + }) this.registerChat("You completed your rescue quest! Visit the Town Board to claim the rewards,", () => { this.rescueMissionDifficulty = this.rescueMissionType = undefined @@ -299,7 +308,7 @@ class Nether extends Feature { } if (this.controlLoc && this.controlLocLast) { - drawBoxAtBlock(this.controlLoc[0] * ticks + this.controlLocLast[0] * (1 - ticks), this.controlLoc[1] * ticks + this.controlLocLast[1] * (1 - ticks), this.controlLoc[2] * ticks + this.controlLocLast[2] * (1 - ticks), 255, 0, 0, 1, 2) + drawBoxAtBlockNotVisThruWalls(this.controlLoc[0] * ticks + this.controlLocLast[0] * (1 - ticks), this.controlLoc[1] * ticks + this.controlLocLast[1] * (1 - ticks), this.controlLoc[2] * ticks + this.controlLocLast[2] * (1 - ticks), 255, 0, 0, 1, 2) } } -- cgit