From 338902af190b8ae45a59d8ec09d28015f901f606 Mon Sep 17 00:00:00 2001 From: GameHerobrine Date: Thu, 28 Dec 2023 20:56:00 +0300 Subject: [PATCH] fixed crash on arrow shooting --- src/entity/object/Arrow.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/entity/object/Arrow.php b/src/entity/object/Arrow.php index 5572f38b..5b1bc4e7 100644 --- a/src/entity/object/Arrow.php +++ b/src/entity/object/Arrow.php @@ -48,7 +48,6 @@ class Arrow extends Projectile{ $f3 = sqrt($d * $d + $d2 * $d2); $this->yaw = (atan2($d, $d2) * 180) / M_PI; $this->pitch = (atan2($d1, $f3) * 180) / M_PI; - $this->sendMotion(); $this->updatePosition(); $this->update(); //TODO i guess? $ticksInGround = 0; @@ -128,7 +127,6 @@ class Arrow extends Projectile{ $this->speedY -= $this->gravity; - $this->sendMotion(); $this->updatePosition(); }