Clear all cells if cave is too small

This commit is contained in:
kuroppoi 2021-04-29 20:18:51 +02:00
parent 399c35acd6
commit 3468b3353d

View file

@ -175,7 +175,11 @@ public class CaveGenerator implements GeneratorTask {
return cave;
} else {
cells[x][y] = false;
for(BlockPosition block : blocks) {
int bX = block.getX();
int bY = block.getY();
cells[bX][bY] = false;
}
}
return null;