aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'features/events/index.js')
-rw-r--r--features/events/index.js7
1 files changed, 4 insertions, 3 deletions
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 @@
/// <reference types="../../../CTAutocomplete" />
/// <reference lib="es2015" />
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]