mirror of
https://github.com/array-in-a-matrix/brainwine.git
synced 2025-04-02 11:11:58 -04:00
Clear all cells if cave is too small
This commit is contained in:
parent
399c35acd6
commit
3468b3353d
1 changed files with 5 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue