mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-17 08:17:35 +02:00
Fix
This commit is contained in:
@@ -130,7 +130,7 @@ module.exports = class ChessCommand extends Command {
|
|||||||
let col = 0;
|
let col = 0;
|
||||||
for (let i = 0; i < 64; i++) {
|
for (let i = 0; i < 64; i++) {
|
||||||
const piece = gameState.pieces[`${cols[col]}${row}`];
|
const piece = gameState.pieces[`${cols[col]}${row}`];
|
||||||
const prevGamePiece = prevGameState.pieces[`${cols[col]}${row}`];
|
const prevGamePiece = prevGameState ? prevGameState.pieces[`${cols[col]}${row}`] : null;
|
||||||
if (piece) {
|
if (piece) {
|
||||||
const parsed = this.pickImage(piece);
|
const parsed = this.pickImage(piece);
|
||||||
if (prevGameState && prevGamePiece !== piece && !prevGamePiece) {
|
if (prevGameState && prevGamePiece !== piece && !prevGamePiece) {
|
||||||
|
|||||||
Reference in New Issue
Block a user