mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fix cabbage lad crash #271
This commit is contained in:
parent
cdfc4babb4
commit
703c8e6d39
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue