Skip to content
Snippets Groups Projects
Commit 8d243105 authored by Jean-Patrick Guerrero's avatar Jean-Patrick Guerrero
Browse files

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

parent 3749c1e2
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment