From 3e8a1558950e6904a3ef79c117766c0d89a45125 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Wed, 12 Jul 2023 21:30:08 +0200 Subject: [PATCH] Chess: Fix "New game" button --- src/chess.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/chess.lua b/src/chess.lua index 4dcf18b..d709338 100644 --- a/src/chess.lua +++ b/src/chess.lua @@ -1770,7 +1770,7 @@ function realchess.fields(pos, _, fields, sender) -- Timeout is 5 min. by default for resetting the game (non-players only) if fields.new then - if (playerWhite == playerName or playerBlack == playerName) then + if (playerWhite == playerName or playerBlack == playerName or playerWhite == "") then realchess.init(pos) elseif lastMoveTime > 0 then