diff options
author | md_5 <git@md-5.net> | 2018-07-27 14:29:02 +1000 |
---|---|---|
committer | md_5 <git@md-5.net> | 2018-07-27 14:29:02 +1000 |
commit | 095239d4c56519b1236eb200900f4034a8dd4a4d (patch) | |
tree | 9325020ad781f06005c8dfec4a20d3176a4fc067 /src/main/java/org | |
parent | 5d881a9264be3f1dc3eeb41e99821e19793328cf (diff) | |
download | craftbukkit-095239d4c56519b1236eb200900f4034a8dd4a4d.tar craftbukkit-095239d4c56519b1236eb200900f4034a8dd4a4d.tar.gz craftbukkit-095239d4c56519b1236eb200900f4034a8dd4a4d.tar.lz craftbukkit-095239d4c56519b1236eb200900f4034a8dd4a4d.tar.xz craftbukkit-095239d4c56519b1236eb200900f4034a8dd4a4d.zip |
SPIGOT-4159: Fix Player.launchProjectile(Trident.class)
Diffstat (limited to 'src/main/java/org')
-rw-r--r-- | src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java b/src/main/java/org/bukkit/craftbukkit/entity/CraftLivingEntity.java index 6f23a968..3bf5b2a6 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()); } |