Update Chess formspec in multiplayer

This commit is contained in:
Wuzzy 2023-07-11 09:21:39 +02:00
parent 47be3f6e20
commit 694255cff8

View File

@ -1520,6 +1520,8 @@ function realchess.on_move(pos, from_list, from_index)
-- Only let it play if it didn't already play. -- Only let it play if it didn't already play.
if meta:get_string("mode") == "single" and meta:get_string("lastMove") ~= "black" then if meta:get_string("mode") == "single" and meta:get_string("lastMove") ~= "black" then
ai_move(inv, meta) ai_move(inv, meta)
else
update_formspec(meta)
end end
return false return false
end end