mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
arrows will fly a bit better now
This commit is contained in:
parent
b455b7891a
commit
4de7707532
2 changed files with 26 additions and 1 deletions
|
|
@ -1726,7 +1726,7 @@ class Player{
|
|||
$e->speedX = -sin(($e->yaw / 180) * M_PI) * cos(($e->pitch / 180) * M_PI);
|
||||
$e->speedZ = cos(($e->yaw / 180) * M_PI) * cos(($e->pitch / 180) * M_PI);
|
||||
$e->speedY = -sin(($e->pitch / 180) * M_PI);
|
||||
$e->shoot($e->speedX, $e->speedY, $e->speedZ, 1.5, 1.0);
|
||||
$e->shoot($e->speedX, $e->speedY, $e->speedZ, 1.5, 1.5); //TODO bow power
|
||||
$this->server->api->entity->spawnToAll($e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue