Update Chess formspec in multiplayer
This commit is contained in:
parent
47be3f6e20
commit
694255cff8
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user