From dda7ca0059e91dff0cd2063f5410d0947167e7bd Mon Sep 17 00:00:00 2001 From: sk89q Date: Mon, 10 Jan 2011 14:13:44 -0800 Subject: [PATCH] Fixed CraftWorld.spawnArrow() not setting X, Y, Z positions correctly. --- 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 8d5aa10016..28deed207c 100644 --- a/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -139,7 +139,7 @@ public class CraftWorld implements World { public Arrow spawnArrow(Location loc, Vector velocity, float speed, float spread) { EntityArrow arrow = new EntityArrow(world); - arrow.c(loc.getX(), loc.getY(), loc.getZ()); + arrow.c(loc.getX(), loc.getY(), loc.getZ(), 0, 0); world.a(arrow); arrow.a(velocity.getX(), velocity.getY(), velocity.getZ(), speed, spread); return new CraftArrow(world.getServer(), arrow);