Fix cabbage lad crash #271

This commit is contained in:
Sollace 2024-02-20 20:09:57 +00:00
parent cdfc4babb4
commit 703c8e6d39
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB

View file

@ -180,8 +180,10 @@ public class IgnominiousBulbEntity extends MobEntity {
});
}
}
@Nullable
LivingEntity target = getAttacker();
if (!canTarget(target)) {
if (target == null || !canTarget(target)) {
target = null;
setAttacker(null);
}