Why is gradle's compiler so stupid? Can ANYONE tell me why gradle's compiler is so stupid!?

This commit is contained in:
Sollace 2024-09-18 22:35:45 +01:00
parent 72615aac95
commit 3f9d26f4b4
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -75,8 +75,8 @@ public class DisplacementSpell extends AbstractSpell implements HomingSpell, Pro
@Override @Override
public void onImpact(MagicProjectileEntity projectile) { public void onImpact(MagicProjectileEntity projectile) {
if (projectile.getMaster() instanceof Entity owner) { if (projectile.getMaster() != null) {
owner.setGlowing(false); projectile.getMaster().setGlowing(false);
} }
target.ifPresent(projectile.asWorld(), e -> e.setGlowing(false)); target.ifPresent(projectile.asWorld(), e -> e.setGlowing(false));
} }