From 2bf333e0fc0fcffbf958c044bd789d1cf5825eb2 Mon Sep 17 00:00:00 2001 From: md_5 Date: Sat, 12 Mar 2016 20:41:06 +1100 Subject: [PATCH] SPIGOT-1901: Fix projectile launching. --- .../org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index c17b6144c3..cf98c76825 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -345,12 +345,12 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity { ((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 1.5F, 1.0F); // ItemEnderPearl } else if (Arrow.class.isAssignableFrom(projectile)) { if (TippedArrow.class.isAssignableFrom(projectile)) { - launch = new EntityTippedArrow(world); + launch = new EntityTippedArrow(world, getHandle()); ((EntityTippedArrow) launch).setType(CraftPotionUtil.fromBukkit(new PotionData(PotionType.WATER, false, false))); } else if (SpectralArrow.class.isAssignableFrom(projectile)) { - launch = new EntitySpectralArrow(world); + launch = new EntitySpectralArrow(world, getHandle()); } else { - launch = new EntityTippedArrow(world); + launch = new EntityTippedArrow(world, getHandle()); } ((EntityArrow) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 3.0F, 1.0F); // ItemBow } else if (ThrownPotion.class.isAssignableFrom(projectile)) {