flooded flagged cells now get substracted from flagsPlaced

This commit is contained in:
LunarAkai 2024-03-24 15:22:20 +01:00
commit 7355c2e0df
3 changed files with 13 additions and 4 deletions

View file

@ -343,7 +343,7 @@ public class MinecleanerArena {
currentMinecleanerGame.reveal(x, y);
setBlockForCellType(x, y, cell);
if(currentMinecleanerGame.gameover) {
plugin.getManager().handleGameover(player, this, !(cell.isRevealed() && cell.isExploded()));
} else {
@ -356,6 +356,7 @@ public class MinecleanerArena {
Vector2i pos = floodedCells.get(i).position;
setBlockForCellType(pos.x, pos.y, floodedCells.get(i));
}
flagsPlaced = flagsPlaced - currentMinecleanerGame.getFloodedFlaggedCells();
}
}
}