nullcheck in setBlockForCellType in MinecleanerArena

This commit is contained in:
LunarAkai 2024-03-31 23:51:56 +02:00
commit 335b4cfab1

View file

@ -449,6 +449,7 @@ public class MinecleanerArena {
} }
private void setBlockForCellType(int x, int y, Cell cell) { private void setBlockForCellType(int x, int y, Cell cell) {
if(cell.getType() == null) return;
switch (cell.getType()) { switch (cell.getType()) {
case Empty: { case Empty: {
if (!cell.isRevealed() || !cell.isFlagged() || !cell.isExploded()) { if (!cell.isRevealed() || !cell.isFlagged() || !cell.isExploded()) {