mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-07 11:05:13 +01:00
SPIGOT-7025: Use existing item in hand for ranged Drowned attack
By: Doc <nachito94@msn.com>
This commit is contained in:
parent
ed74e7e047
commit
0fb296468e
1 changed files with 11 additions and 0 deletions
|
@ -0,0 +1,11 @@
|
||||||
|
--- a/net/minecraft/world/entity/monster/EntityDrowned.java
|
||||||
|
+++ b/net/minecraft/world/entity/monster/EntityDrowned.java
|
||||||
|
@@ -239,7 +239,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();
|
Loading…
Reference in a new issue