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 a12ed2a590
commit dc1f158640
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
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));
}