From d9b40a0397d298c276a44b9f484b5329b66d28e3 Mon Sep 17 00:00:00 2001 From: Blazified <99800160+Blazified@users.noreply.github.com> Date: Thu, 14 Dec 2023 08:48:33 +0000 Subject: [PATCH] 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. --- .../content/equipment/potatoCannon/PotatoProjectileEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/simibubi/create/content/equipment/potatoCannon/PotatoProjectileEntity.java b/src/main/java/com/simibubi/create/content/equipment/potatoCannon/PotatoProjectileEntity.java index b233ad499..f7cebe591 100644 --- a/src/main/java/com/simibubi/create/content/equipment/potatoCannon/PotatoProjectileEntity.java +++ b/src/main/java/com/simibubi/create/content/equipment/potatoCannon/PotatoProjectileEntity.java @@ -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")