Merge pull request #451 from pixlepix/master
Made robit look up on chargepad
This commit is contained in:
commit
c9ea74b013
1 changed files with 3 additions and 0 deletions
|
@ -61,6 +61,9 @@ public class RobitAIFollow extends EntityAIBase
|
||||||
}
|
}
|
||||||
else if(!theRobit.getFollowing())
|
else if(!theRobit.getFollowing())
|
||||||
{
|
{
|
||||||
|
//Still looks up at the player if on chargepad or not following
|
||||||
|
|
||||||
|
theRobit.getLookHelper().setLookPositionWithEntity(player, 6.0F, theRobit.getVerticalFaceSpeed()/10);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
else if(theRobit.getDistanceSqToEntity(player) < (minDist * minDist))
|
else if(theRobit.getDistanceSqToEntity(player) < (minDist * minDist))
|
||||||
|
|
Loading…
Reference in a new issue