mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-18 04:00:29 +00:00
Merge branch 'stable' into master
# Conflicts: # composer.lock # resources/vanilla # src/command/defaults/StatusCommand.php # src/pocketmine/entity/Entity.php # src/pocketmine/level/format/SubChunk.php
This commit is contained in:
@@ -893,7 +893,7 @@ abstract class Entity{
|
||||
}
|
||||
|
||||
public function getHorizontalFacing() : int{
|
||||
$angle = $this->location->yaw % 360;
|
||||
$angle = fmod($this->location->yaw, 360);
|
||||
if($angle < 0){
|
||||
$angle += 360.0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user