summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authort00thpick1 <t00thpick1dirko@gmail.com>2014-01-21 22:50:15 -0500
committerNate Mortensen <nate.richard.mortensen@gmail.com>2014-01-30 21:47:44 -0700
commit2fc5d5930387b4abe2e7c34fa64df72402d049fe (patch)
tree2c402ee4d4c4d01f84699f4fd28c722c08302fd8 /src
parentb4c4c8ed78393b85c0c149864cf387a5e2dc5eef (diff)
downloadcraftbukkit-2fc5d5930387b4abe2e7c34fa64df72402d049fe.tar
craftbukkit-2fc5d5930387b4abe2e7c34fa64df72402d049fe.tar.gz
craftbukkit-2fc5d5930387b4abe2e7c34fa64df72402d049fe.tar.lz
craftbukkit-2fc5d5930387b4abe2e7c34fa64df72402d049fe.tar.xz
craftbukkit-2fc5d5930387b4abe2e7c34fa64df72402d049fe.zip
[Bleeding] Use correct yaw and pitch when spawning arrows. Fixes BUKKIT-3320
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/bukkit/craftbukkit/CraftWorld.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java
index 3d0383df..fc209215 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();