diff --git a/src/pocketmine/entity/Entity.php b/src/pocketmine/entity/Entity.php index 0e72eb431..794fa6647 100644 --- a/src/pocketmine/entity/Entity.php +++ b/src/pocketmine/entity/Entity.php @@ -631,9 +631,6 @@ abstract class Entity extends Location implements Metadatable{ * @return Vector3 */ public function getDirectionVector(){ - $pitch = ($this->pitch * M_PI) / 180; - $yaw = (($this->yaw + 90) * M_PI) / 180; - $y = -sin(deg2rad($this->pitch)); $xz = cos(deg2rad($this->pitch)); $x = -$xz * sin(deg2rad($this->yaw));