such change. very cool.

This commit is contained in:
kotyaralih 2021-12-13 07:04:05 -08:00
parent 0664e1ae03
commit 0e231fedd8

View file

@ -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){