From 0200834fee83bbee75bbd7c06c2ef5e3a4879679 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 17 Mar 2020 17:47:39 -0400 Subject: [PATCH] Fix --- commands/mp-games/connect-four.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/mp-games/connect-four.js b/commands/mp-games/connect-four.js index 7f935c82..f8726204 100644 --- a/commands/mp-games/connect-four.js +++ b/commands/mp-games/connect-four.js @@ -63,7 +63,7 @@ module.exports = class ConnectFourCommand extends Command { if (choice.toLowerCase() === 'end') return true; const i = Number.parseInt(choice, 10) - 1; if (!board[colLevels[i]]) return false; - if (!board[colLevels[i]][i]) return false; + if (board[colLevels[i]][i] === undefined) return false; return res.author.id === user.id; }; const turn = await msg.channel.awaitMessages(filter, {