mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-29 03:32:46 +01:00
SPIGOT-4159: Fix Player.launchProjectile(Trident.class)
This commit is contained in:
parent
5d881a9264
commit
095239d4c5
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…
Reference in a new issue