geforkt von Mirrors/Paper
[Bleeding] Use correct yaw and pitch when spawning arrows. Fixes BUKKIT-3320
Dieser Commit ist enthalten in:
Ursprung
b4c4c8ed78
Commit
2fc5d59303
@ -317,7 +317,7 @@ public class CraftWorld implements World {
|
|||||||
Validate.notNull(velocity, "Can not spawn arrow with a null velocity");
|
Validate.notNull(velocity, "Can not spawn arrow with a null velocity");
|
||||||
|
|
||||||
EntityArrow arrow = new EntityArrow(world);
|
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);
|
arrow.shoot(velocity.getX(), velocity.getY(), velocity.getZ(), speed, spread);
|
||||||
world.addEntity(arrow);
|
world.addEntity(arrow);
|
||||||
return (Arrow) arrow.getBukkitEntity();
|
return (Arrow) arrow.getBukkitEntity();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren