mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-09 11:44:19 +01:00
65bc2541a3
By: md_5 <git@md-5.net>
11 lines
840 B
Diff
11 lines
840 B
Diff
--- a/net/minecraft/world/entity/monster/EntityDrowned.java
|
|
+++ b/net/minecraft/world/entity/monster/EntityDrowned.java
|
|
@@ -247,7 +247,7 @@
|
|
|
|
@Override
|
|
public void performRangedAttack(EntityLiving entityliving, float f) {
|
|
- EntityThrownTrident entitythrowntrident = new EntityThrownTrident(this.level(), this, new ItemStack(Items.TRIDENT));
|
|
+ EntityThrownTrident entitythrowntrident = new EntityThrownTrident(this.level(), this, this.getItemInHand(net.minecraft.world.entity.projectile.ProjectileHelper.getWeaponHoldingHand(this, Items.TRIDENT))); // CraftBukkit - Use Trident in hand like skeletons (SPIGOT-7025)
|
|
double d0 = entityliving.getX() - this.getX();
|
|
double d1 = entityliving.getY(0.3333333333333333D) - entitythrowntrident.getY();
|
|
double d2 = entityliving.getZ() - this.getZ();
|