dungeon generator(disabled)

This commit is contained in:
GameHerobrine 2023-12-02 13:39:58 +03:00
parent 9abc3cd409
commit 60fd866de6
11 changed files with 157 additions and 30 deletions

View file

@ -840,7 +840,7 @@ class Entity extends Position
public function getDirection()
{
$rotation = ($this->yaw - 90) % 360;
$rotation = ((int)($this->yaw - 90)) % 360;
if($rotation < 0){
$rotation += 360.0;
}