misc cleanup

This commit is contained in:
Leijurv
2018-09-10 14:48:18 -07:00
parent fb07e47141
commit d8790e1dc6
3 changed files with 22 additions and 15 deletions

View File

@@ -107,9 +107,9 @@ public abstract class AbstractNodeCostSearch implements IPathFinder {
* @return The distance, squared
*/
protected double getDistFromStartSq(PathNode n) {
int xDiff = n.pos.getX() - start.getX();
int yDiff = n.pos.getY() - start.getY();
int zDiff = n.pos.getZ() - start.getZ();
int xDiff = n.pos.x - start.x;
int yDiff = n.pos.y - start.y;
int zDiff = n.pos.z - start.z;
return xDiff * xDiff + yDiff * yDiff + zDiff * zDiff;
}