From 095239d4c56519b1236eb200900f4034a8dd4a4d Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 27 Jul 2018 14:29:02 +1000 Subject: [PATCH] SPIGOT-4159: Fix Player.launchProjectile(Trident.class) --- .../java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 6f23a96851..3bf5b2a663 100644 --- a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java +++ b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java @@ -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()); }