Fixed Potato Cannon Shooter Credit

Projectile and shooter were the wrong way round in the damage method. This resulted in some enchantments not taking effect, no EXP, and no contribution to killed stats.
This commit is contained in:
Blazified 2023-12-14 08:48:33 +00:00
parent a41053b896
commit d9b40a0397

View file

@ -317,7 +317,7 @@ public class PotatoProjectileEntity extends AbstractHurtingProjectile implements
}
private DamageSource causePotatoDamage() {
return CreateDamageSources.potatoCannon(level(), getOwner(), this);
return CreateDamageSources.potatoCannon(level(), this, getOwner());
}
@SuppressWarnings("unchecked")