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/waypoints | |
parent | 4f4ad2492a0819726fbf897746fde46d9467a359 (diff) | |
download | SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.tar.gz SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.tar.bz2 SoopyV2-e2e2d676ee056e9f44f6c67e29f0952b9ef956b2.zip |
+ waypoints for hostage rescue
Diffstat (limited to 'features/waypoints')
-rw-r--r-- | features/waypoints/index.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/features/waypoints/index.js b/features/waypoints/index.js index 6be0f5f..1f256ce 100644 --- a/features/waypoints/index.js +++ b/features/waypoints/index.js @@ -5,7 +5,6 @@ import Feature from "../../featureClass/class"; import { drawCoolWaypoint } from "../../utils/renderUtils"; import SettingBase from "../settings/settingThings/settingBase"; -const RenderWorldLastEvent = Java.type("net.minecraftforge.client.event.RenderWorldLastEvent") class Waypoints extends Feature { constructor() { @@ -28,7 +27,7 @@ class Waypoints extends Feature { this.updateWaypointsHashes() this.waypointsChanged = false - this.registerForge(RenderWorldLastEvent, this.renderWorldLast) + this.registerEvent("renderWorld", this.renderWorld) this.registerCommand("addwaypoint", (name, x = Math.floor(Player.getX()).toString(), y = Math.floor(Player.getY()).toString(), z = Math.floor(Player.getZ()).toString(), r = "0", g = "255", b = "0", area = "") => { let lx = 0 @@ -108,7 +107,7 @@ class Waypoints extends Feature { } } - renderWorldLast() { + renderWorld() { for (let waypoint of this.userWaypointsAll) { drawCoolWaypoint(waypoint.x, waypoint.y, waypoint.z, waypoint.r, waypoint.g, waypoint.b, waypoint.options) } |