From f86a4206a570fcc603c84f910552736a1c311b81 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 23 Jan 2021 19:15:36 -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 aa26b206..615fe82a 100644 --- a/commands/games-mp/chess.js +++ b/commands/games-mp/chess.js @@ -134,7 +134,7 @@ module.exports = class ChessCommand extends Command { const prevGamePiece = prevPieces ? prevPieces[`${cols[col]}${row}`] : null; if (piece) { const parsed = this.pickImage(piece); - if (!prevGamePiece) { + if (prevPieces && !prevGamePiece) { drawImageWithTint(ctx, this.images[parsed.color][parsed.name], 'green', w, h, 52, 52); } else { ctx.drawImage(this.images[parsed.color][parsed.name], w, h, 52, 52);