regionY = yRegionSize;
<BUG>chunks = new Chunk[regionX][regionY];
</BUG>
for (int x = 0; x < regionX; x++) {
for (int y = 0; y < regionY; y++) {
<BUG>chunks[x][y] = new Chunk(x, y);
</BUG>
chunks[x][y].recalculate();
}
}

regionY = yRegionSize;
chunks = new ExampleChunk[regionX][regionY];
for (int x = 0; x < regionX; x++) {
for (int y = 0; y < regionY; y++) {
chunks[x][y] = new ExampleChunk(x, y);
chunks[x][y].recalculate();
