diff options
author | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-05 22:44:05 +0800 |
---|---|---|
committer | Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> | 2022-05-05 22:44:05 +0800 |
commit | e2e2d676ee056e9f44f6c67e29f0952b9ef956b2 (patch) | |
tree | 6e0a8f8084ea665561eb7c28b50b1dbbf5b4ae8c /features/slayers | |
parent | 4f4ad2492a0819726fbf897746fde46d9467a359 (diff) | |
download | SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.tar.gz SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.tar.bz2 SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.zip |
+ waypoints for hostage rescue
Diffstat (limited to 'features/slayers')
-rw-r--r-- | features/slayers/index.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/features/slayers/index.js b/features/slayers/index.js index d494096..db5983c 100644 --- a/features/slayers/index.js +++ b/features/slayers/index.js @@ -124,14 +124,6 @@ class Slayers extends Feature { this.registerEvent("worldLoad", this.worldLoad); this.registerEvent("renderOverlay", this.renderHud); this.registerStep(true, 2, this.step); - this.registerForge(Java.type("net.minecraftforge.client.event.RenderWorldLastEvent"), this.renderWorldLast) - } - - renderWorldLast() { - if (!this.otherSlayerWaypoints) return - Object.keys(this.slayerLocationDataH).forEach(key => { - drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: key + "'s boss" }) - }) } slayerLocationData(loc, user) { @@ -212,6 +204,11 @@ class Slayers extends Feature { drawBoxAtBlock(x - 0.5, y + 0.7, z - 0.5, 255, 0, 0); }); + if (this.otherSlayerWaypoints) { + Object.keys(this.slayerLocationDataH).forEach(key => { + drawCoolWaypoint(this.slayerLocationDataH[key][0][0], this.slayerLocationDataH[key][0][1], this.slayerLocationDataH[key][0][2], 255, 0, 0, { name: key + "'s boss" }) + }) + } } entityJoinWorldEvent(event) { |