import java.util.HashSet;
import java.util.PriorityQueue;
public class ChunkPathfinder {
private PathNode2d[][] nodes;
public ChunkPathfinder() {
<BUG>nodes = new PathNode2d[Chunk.xSize][Chunk.ySize];

for (int x = 0; x < Chunk.xSize; x++) {

for (int y = 0; y < Chunk.ySize; y++) {
</BUG>
nodes[x][y] = new PathNode2d(x, y);

import java.util.HashSet;
import java.util.PriorityQueue;
public class ChunkPathfinder {
private PathNode2d[][] nodes;
public ChunkPathfinder() {
nodes = new PathNode2d[ExampleChunk.xSize][ExampleChunk.ySize];
for (int x = 0; x < ExampleChunk.xSize; x++) {
for (int y = 0; y < ExampleChunk.ySize; y++) {
nodes[x][y] = new PathNode2d(x, y);
