Fixed the symmetry issues of the Ritual of Containment

This commit is contained in:
WayofTime 2016-09-21 07:37:48 -04:00
parent 9538e9aa0d
commit dade5f0837
3 changed files with 10 additions and 4 deletions

View file

@ -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)