flooded flagged cells now get substracted from flagsPlaced
This commit is contained in:
parent
c2ba644f21
commit
7355c2e0df
3 changed files with 13 additions and 4 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue