From 8d243105765d102f124f1de568efff5de7ddf9a9 Mon Sep 17 00:00:00 2001 From: Jean-Patrick Guerrero Date: Sun, 13 Mar 2016 11:25:25 +0100 Subject: [PATCH] Work Bench : add legacy code to go back to main inventory when in old craftguide formspec --- workbench.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/workbench.lua b/workbench.lua index 88d7a00..405f1c6 100644 --- a/workbench.lua +++ b/workbench.lua @@ -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)