From a15d4080bd272daa05d02a8c390d340f87421c1c Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 22:14:39 -0500 Subject: [PATCH] Fix --- commands/games-mp/chess.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/games-mp/chess.js b/commands/games-mp/chess.js index 90197702..d3a0fa7d 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -73,8 +73,8 @@ module.exports = class ChessCommand extends Command { game = new jsChess.Game(data.fen); whiteTime = data.whiteTime; blackTime = data.blackTime; - whitePlayer = data.playerColor === 'white' ? msg.author : opponent; - blackPlayer = data.playerColor === 'black' ? msg.author : opponent; + whitePlayer = data.color === 'white' ? msg.author : opponent; + blackPlayer = data.color === 'black' ? msg.author : opponent; await this.client.redis.del(`chess-${msg.author.id}`); } else { game = new jsChess.Game();