aboutsummaryrefslogtreecommitdiff
path: root/features/nether/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-10 10:19:43 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2022-09-10 10:19:43 +0800
commitfa3fd389d50ad5dfc9b00f485ae85da28fb96a25 (patch)
treee0b115d00949e83267e3bbcb9b3e0ed40953b195 /features/nether/index.js
parent0b7ac15c335ba0978fda41a775a57c5456b64800 (diff)
downloadSoopyV2-fa3fd389d50ad5dfc9b00f485ae85da28fb96a25.tar.gz
SoopyV2-fa3fd389d50ad5dfc9b00f485ae85da28fb96a25.tar.bz2
SoopyV2-fa3fd389d50ad5dfc9b00f485ae85da28fb96a25.zip
+ fix bugs with new guess system
Diffstat (limited to 'features/nether/index.js')
-rw-r--r--features/nether/index.js13
1 files changed, 11 insertions, 2 deletions
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)
}
}