mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 10:02:05 +02:00
Fix
This commit is contained in:
@@ -75,7 +75,7 @@ module.exports = class MinesweeperCommand extends Command {
|
||||
const flag = Boolean(coordPicked[1]);
|
||||
if (flag) {
|
||||
if (flagged.includes(`${x - 1},${y - 1}`)) {
|
||||
flagged = removeFromArray(flagged, `${x - 1},${y - 1}`);
|
||||
removeFromArray(flagged, `${x - 1},${y - 1}`);
|
||||
} else {
|
||||
flagged.push(`${x - 1},${y - 1}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user