mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
dungeon generator(disabled)
This commit is contained in:
parent
9abc3cd409
commit
60fd866de6
11 changed files with 157 additions and 30 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue