Bugfix
This commit is contained in:
parent
214ec19ed4
commit
1a6ac3a3b8
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue