Fix wrong Chess gameResult check
This commit is contained in:
parent
70c4475eed
commit
f5fdb5b3f9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user