From 0e231fedd84ea4b5df92fe32b31136c448ad5906 Mon Sep 17 00:00:00 2001 From: kotyaralih <62548070+kotyaralih@users.noreply.github.com> Date: Mon, 13 Dec 2021 07:04:05 -0800 Subject: [PATCH] such change. very cool. --- src/Player.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Player.php b/src/Player.php index 95143543..e266dd39 100644 --- a/src/Player.php +++ b/src/Player.php @@ -145,8 +145,8 @@ class Player{ if(!($this->entity instanceof Entity) or $this->connected === false){ return false; } - $X = ($this->entity->x - 0.5) / 16; - $Z = ($this->entity->z - 0.5) / 16; + $X = $this->entity->x >> 4; + $Z = $this->entity->z >> 4; $v = new Vector2($X, $Z); $this->chunksOrder = array(); for($x = 0; $x < 16; ++$x){