mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
fixed crash on arrow shooting
This commit is contained in:
parent
c22667f8d7
commit
338902af19
1 changed files with 0 additions and 2 deletions
|
|
@ -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();
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue