Work Bench : add legacy code to go back to main inventory when in old craftguide formspec

This commit is contained in:
Jean-Patrick Guerrero 2016-03-13 11:25:25 +01:00
parent 3749c1e268
commit 8d24310576

View File

@ -114,7 +114,8 @@ function workbench.fields(pos, _, fields)
local meta = minetest.get_meta(pos)
if fields.back then workbench:formspecs(meta, 1)
elseif fields.craft then workbench:formspecs(meta, 2)
elseif fields.storage then workbench:formspecs(meta, 3) end
elseif fields.storage then workbench:formspecs(meta, 3)
elseif fields.backcraft then workbench:formspecs(meta, 1) end -- Legacy code for older formspecs.
end
function workbench.dig(pos)