moving away from linked list, so remove nextOpen from PathNode

This commit is contained in:
Leijurv
2018-08-03 12:50:09 -04:00
parent cd2b5d001e
commit d382de2b52
3 changed files with 22 additions and 18 deletions

View File

@@ -54,7 +54,6 @@ public class AStarPathFinder extends AbstractNodeCostSearch {
PathNode currentNode = openSet.removeLowest();
mostRecentConsidered = currentNode;
currentNode.isOpen = false;
currentNode.nextOpen = null;
BlockPos currentNodePos = currentNode.pos;
numNodes++;
if (System.currentTimeMillis() > lastPrintout + 1000) {//print once a second