Fixed the symmetry issues of the Ritual of Containment
This commit is contained in:
parent
9538e9aa0d
commit
dade5f0837
3 changed files with 10 additions and 4 deletions
|
@ -90,9 +90,10 @@ public class EntityAIStealthRetreat extends EntityAIBase
|
|||
public void updateTask()
|
||||
{
|
||||
ticksLeft--;
|
||||
if (ticksLeft <= 0)
|
||||
if (ticksLeft <= 0 || this.entity.getAttackTarget() == null)
|
||||
{
|
||||
this.entity.attackStateMachine = 0;
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.entity.getDistanceSqToEntity(this.entity.getAttackTarget()) < 49.0D)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue