mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 13:37:58 +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