mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-22 08:15:05 +01:00
SPIGOT-1901: Fix projectile launching.
This commit is contained in:
parent
0619f0eb3b
commit
2bf333e0fc
1 changed files with 3 additions and 3 deletions
|
@ -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
|
((EntityProjectile) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 1.5F, 1.0F); // ItemEnderPearl
|
||||||
} else if (Arrow.class.isAssignableFrom(projectile)) {
|
} else if (Arrow.class.isAssignableFrom(projectile)) {
|
||||||
if (TippedArrow.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)));
|
((EntityTippedArrow) launch).setType(CraftPotionUtil.fromBukkit(new PotionData(PotionType.WATER, false, false)));
|
||||||
} else if (SpectralArrow.class.isAssignableFrom(projectile)) {
|
} else if (SpectralArrow.class.isAssignableFrom(projectile)) {
|
||||||
launch = new EntitySpectralArrow(world);
|
launch = new EntitySpectralArrow(world, getHandle());
|
||||||
} else {
|
} 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
|
((EntityArrow) launch).a(getHandle(), getHandle().pitch, getHandle().yaw, 0.0F, 3.0F, 1.0F); // ItemBow
|
||||||
} else if (ThrownPotion.class.isAssignableFrom(projectile)) {
|
} else if (ThrownPotion.class.isAssignableFrom(projectile)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue