Archiviert
13
0

SPIGOT-4159: Fix Player.launchProjectile(Trident.class)

Dieser Commit ist enthalten in:
md_5 2018-07-27 14:29:02 +10:00
Ursprung 5d881a9264
Commit 095239d4c5

Datei anzeigen

@ -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());
}