1.12 conversion
This commit is contained in:
@@ -127,7 +127,7 @@ public class EntityLightningWraith extends EntityBlazeMinion {
|
||||
public void updateTask(){
|
||||
--this.attackTime;
|
||||
EntityLivingBase entitylivingbase = this.blaze.getAttackTarget();
|
||||
double d0 = this.blaze.getDistanceSqToEntity(entitylivingbase);
|
||||
double d0 = this.blaze.getDistanceSq(entitylivingbase);
|
||||
|
||||
if(d0 < 4.0D){
|
||||
if(this.attackTime <= 0){
|
||||
@@ -162,7 +162,7 @@ public class EntityLightningWraith extends EntityBlazeMinion {
|
||||
|
||||
this.blaze.getLookHelper().setLookPositionWithEntity(entitylivingbase, 10.0F, 10.0F);
|
||||
}else{
|
||||
this.blaze.getNavigator().clearPathEntity();
|
||||
this.blaze.getNavigator().clearPath();
|
||||
this.blaze.getMoveHelper().setMoveTo(entitylivingbase.posX, entitylivingbase.posY,
|
||||
entitylivingbase.posZ, 1.0D);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user