fixed mine gen 2

This commit is contained in:
LunarAkai 2024-03-24 21:21:12 +01:00
commit bae80a90f0

View file

@ -114,16 +114,8 @@ public class Game {
} }
while (state[x][y].type == Cell.CellType.Mine) { while (state[x][y].type == Cell.CellType.Mine) {
x++; i--;
continue;
if(x >= width) {
x = 0;
y++;
if(y >= height) {
y=0;
}
}
} }
state[x][y].setType(Cell.CellType.Mine); state[x][y].setType(Cell.CellType.Mine);
} }