mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-24 17:22:55 +01:00
SPIGOT-4159: Fix Player.launchProjectile(Trident.class)
By: md_5 <git@md-5.net>
This commit is contained in:
parent
94d8c51934
commit
5bdad5e046
1 changed files with 1 additions and 1 deletions
|
@ -322,7 +322,7 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
|||
} else if (SpectralArrow.class.isAssignableFrom(projectile)) {
|
||||
launch = new EntitySpectralArrow(world, getHandle());
|
||||
} else if (Trident.class.isAssignableFrom(projectile)) {
|
||||
launch = new EntityThrownTrident(world, getHandle(), net.minecraft.server.ItemStack.a);
|
||||
launch = new EntityThrownTrident(world, getHandle(), new net.minecraft.server.ItemStack(net.minecraft.server.Items.TRIDENT));
|
||||
} else {
|
||||
launch = new EntityTippedArrow(world, getHandle());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue