this doesn't compile yet, but have something to peek at
This commit is contained in:
parent
973f1019a5
commit
5fcdd978d7
329 changed files with 3247 additions and 2953 deletions
|
@ -79,9 +79,9 @@ public class EntityAIAttackStealthMelee extends EntityAIBase
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean continueExecuting()
|
||||
public boolean shouldContinueExecuting()
|
||||
{
|
||||
return chicken.attackStateMachine == 1 && super.continueExecuting();
|
||||
return chicken.attackStateMachine == 1 && super.shouldContinueExecuting();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -114,7 +114,7 @@ public class EntityAIAttackStealthMelee extends EntityAIBase
|
|||
if (this.chicken.getNavigator().getPath() != null)
|
||||
{
|
||||
net.minecraft.pathfinding.PathPoint finalPathPoint = this.chicken.getNavigator().getPath().getFinalPathPoint();
|
||||
if (finalPathPoint != null && entitylivingbase.getDistanceSq(finalPathPoint.xCoord, finalPathPoint.yCoord, finalPathPoint.zCoord) < 1)
|
||||
if (finalPathPoint != null && entitylivingbase.getDistanceSq(finalPathPoint.x, finalPathPoint.y, finalPathPoint.z) < 1)
|
||||
failedPathFindingPenalty = 0;
|
||||
else
|
||||
failedPathFindingPenalty += 10;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue