This commit is contained in:
luk3yx 2019-08-17 10:56:51 +12:00
parent 214ec19ed4
commit 1a6ac3a3b8
1 changed files with 5 additions and 3 deletions

View File

@ -43,9 +43,11 @@ end
-- Override minetest.show_formspec -- Override minetest.show_formspec
local show_formspec = minetest.show_formspec local show_formspec = minetest.show_formspec
function minetest.show_formspec(pname, ...) function minetest.show_formspec(pname, formname, formspec)
if pname then open_formspecs[pname] = nil end if pname and (formspec ~= '' or formname == '') then
return show_formspec(pname, ...) open_formspecs[pname] = nil
end
return show_formspec(pname, formname, formspec)
end end
-- Show formspecs -- Show formspecs