fix desezrialize
All checks were successful
Linux arm64 / Build (push) Successful in 25s

This commit is contained in:
2025-01-29 19:28:36 +01:00
parent ff85cbef01
commit a742cace3a

View File

@@ -243,6 +243,9 @@ public class SudokuSerializer {
Sudoku s = new Sudoku(sudokuCells, sudokuBlocks, sudokuConstraints); Sudoku s = new Sudoku(sudokuCells, sudokuBlocks, sudokuConstraints);
s.setBlockWidth(sudokuJsonObject.getInt("blockWidth")); s.setBlockWidth(sudokuJsonObject.getInt("blockWidth"));
for (Block block : s.getBlocks()) {
block.getSudokus().add(s);
}
sudokus.add(s); sudokus.add(s);
} }