From f5fdb5b3f9241403505cbc1591c3e7de902ead7f Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 19 Jul 2023 19:08:39 +0200 Subject: [PATCH] Fix wrong Chess gameResult check --- src/chess.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chess.lua b/src/chess.lua index 2c38337..6f76e28 100644 --- a/src/chess.lua +++ b/src/chess.lua @@ -3030,7 +3030,7 @@ function realchess.dig(pos, player) local playerBlack = meta:get_string("playerBlack") local botColor = meta:get_string("botColor") - if (gameResult ~= "") then + if (meta:get_string("gameResult") ~= "") then -- If the game was completed, the board is free to be dug return true -- If the game is ongoing and no move was made for TIMEOUT seconds,