From e2e2d676ee056e9f44f6c67e29f0952b9ef956b2 Mon Sep 17 00:00:00 2001 From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com> Date: Thu, 5 May 2022 22:44:05 +0800 Subject: + waypoints for hostage rescue --- features/slayers/index.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'features/slayers') 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) { -- cgit