From dc1f1586409d9b3cf7014f6f59c67dff97ba606d Mon Sep 17 00:00:00 2001 From: Sollace Date: Wed, 18 Sep 2024 22:35:45 +0100 Subject: [PATCH] Why is gradle's compiler so stupid? Can ANYONE tell me why gradle's compiler is so stupid!? --- .../ability/magic/spell/effect/DisplacementSpell.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java index 974da9de..d9659de6 100644 --- a/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java +++ b/src/main/java/com/minelittlepony/unicopia/ability/magic/spell/effect/DisplacementSpell.java @@ -75,8 +75,8 @@ public class DisplacementSpell extends AbstractSpell implements HomingSpell, Pro @Override public void onImpact(MagicProjectileEntity projectile) { - if (projectile.getMaster() instanceof Entity owner) { - owner.setGlowing(false); + if (projectile.getMaster() != null) { + projectile.getMaster().setGlowing(false); } target.ifPresent(projectile.asWorld(), e -> e.setGlowing(false)); }