From 099057732f2ee98103c036e49605168680d22bc3 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 22:04:26 -0500 Subject: [PATCH] Fix --- commands/games-mp/chess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 001683ed..90197702 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -70,7 +70,7 @@ module.exports = class ChessCommand extends Command { const verification = await verify(msg.channel, msg.author); if (verification) { const data = JSON.parse(resumeGame); - game = new jsChess.Game(resumeGame.fen); + game = new jsChess.Game(data.fen); whiteTime = data.whiteTime; blackTime = data.blackTime; whitePlayer = data.playerColor === 'white' ? msg.author : opponent;