aboutsummaryrefslogtreecommitdiff
path: root/features/events/index.js
diff options
context:
space:
mode:
authorSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
committerSoopyboo32 <49228220+Soopyboo32@users.noreply.github.com>2021-12-06 16:29:41 +0800
commit6accfc8d22f8873040f347abaf45e9008686a203 (patch)
treef37fc08345f4eb162ce0e4d08c0c127d71552cbe /features/events/index.js
parentc6582418087392ffc81ac49db7a5ad8988815863 (diff)
downloadSoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.gz
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.tar.bz2
SoopyV2-6accfc8d22f8873040f347abaf45e9008686a203.zip
Make a utils thing at allows for human readable mappings
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]