Fix janky player movement (whoops)

This commit is contained in:
Holly Stubbs 2021-09-22 19:12:00 +01:00
parent 9c5c58e51d
commit 7def0e3835

View file

@ -39,9 +39,9 @@ class EntityPlayer extends EntityLiving {
onTick() { onTick() {
super.onTick(); super.onTick();
this.absX = Math.floor(this.x); this.absX = this.x.toFixed(2);
this.absY = Math.floor(this.y); this.absY = this.y.toFixed(2);
this.absZ = Math.floor(this.z); this.absZ = this.z.toFixed(2);
this.absYaw = Math.floor(this.yaw); this.absYaw = Math.floor(this.yaw);
this.absPitch = Math.floor(this.pitch); this.absPitch = Math.floor(this.pitch);