mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-08 11:24:11 +01:00
[Bleeding] Use correct yaw and pitch when spawning arrows. Fixes BUKKIT-3320
By: t00thpick1 <t00thpick1dirko@gmail.com>
This commit is contained in:
parent
7179c931c0
commit
eadaffb1b4
1 changed files with 1 additions and 1 deletions
|
@ -317,7 +317,7 @@ public class CraftWorld implements World {
|
|||
Validate.notNull(velocity, "Can not spawn arrow with a null velocity");
|
||||
|
||||
EntityArrow arrow = new EntityArrow(world);
|
||||
arrow.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getPitch(), loc.getYaw());
|
||||
arrow.setPositionRotation(loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch());
|
||||
arrow.shoot(velocity.getX(), velocity.getY(), velocity.getZ(), speed, spread);
|
||||
world.addEntity(arrow);
|
||||
return (Arrow) arrow.getBukkitEntity();
|
||||
|
|
Loading…
Reference in a new issue