From 6accfc8d22f8873040f347abaf45e9008686a203 Mon Sep 17 00:00:00 2001
From: Soopyboo32 <49228220+Soopyboo32@users.noreply.github.com>
Date: Mon, 6 Dec 2021 16:29:41 +0800
Subject: Make a utils thing at allows for human readable mappings
---
features/events/index.js | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
(limited to 'features/events')
diff --git a/features/events/index.js b/features/events/index.js
index 5586503..6769789 100644
--- a/features/events/index.js
+++ b/features/events/index.js
@@ -1,6 +1,7 @@
///
///
import Feature from "../../featureClass/class";
+import { f } from "../../mappings/mappings";
import { drawBoxAtBlock, drawBoxAtBlockNotVisThruWalls, drawLine } from "../../utils/renderUtils";
import { calculateDistance, calculateDistanceQuick, fastestPathThrough } from "../../utils/utils";
import HudTextElement from "../hud/HudTextElement";
@@ -63,9 +64,9 @@ class Events extends Feature {
renderWorld(ticks){
if(this.showingWaypoints && this.lastPathCords && this.burrialWaypointsPath.getValue()){
- let startPoint = [Player.getPlayer().field_70142_S+Player.getPlayer().field_70159_w*ticks,
- Player.getPlayer().field_70137_T+Player.getPlayer().field_70181_x*ticks,
- Player.getPlayer().field_70136_U+Player.getPlayer().field_70179_y*ticks]
+ let startPoint = [Player.getPlayer()[f.lastTickPosX]+Player.getPlayer()[f.motionX.Entity]*ticks,
+ Player.getPlayer()[f.lastTickPosY]+Player.getPlayer()[f.motionY.Entity]*ticks,
+ Player.getPlayer()[f.lastTickPosZ]+Player.getPlayer()[f.motionZ.Entity]*ticks]
let lastPoint = startPoint || [0,0,0]
--
cgit