diff --git a/commands/games-mp/poker.js b/commands/games-mp/poker.js index 682ad117..0e7e755c 100644 --- a/commands/games-mp/poker.js +++ b/commands/games-mp/poker.js @@ -69,7 +69,7 @@ module.exports = class PokerCommand extends Command { while (!winner) { for (const player of players.values()) { if (players.has(player.id)) continue; - rotation = removeFromArray(rotation, player.id); + removeFromArray(rotation, player.id); } const bigBlind = players.get(rotation[1]); bigBlind.money -= bigBlindAmount; diff --git a/commands/games-sp/minesweeper.js b/commands/games-sp/minesweeper.js index 057e7631..36867f2b 100644 --- a/commands/games-sp/minesweeper.js +++ b/commands/games-sp/minesweeper.js @@ -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}`); }