From 2fc5d5930387b4abe2e7c34fa64df72402d049fe Mon Sep 17 00:00:00 2001 From: t00thpick1 Date: Tue, 21 Jan 2014 22:50:15 -0500 Subject: [PATCH] [Bleeding] Use correct yaw and pitch when spawning arrows. Fixes BUKKIT-3320 --- src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 3d0383df74..fc209215f1 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -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();