]> git.lizzy.rs Git - xdecor.git/commitdiff
Work Bench : add legacy code to go back to main inventory when in old craftguide...
authorJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Sun, 13 Mar 2016 10:25:25 +0000 (11:25 +0100)
committerJean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Sun, 13 Mar 2016 10:29:20 +0000 (11:29 +0100)
workbench.lua

index 88d7a00401fb65947d8612243f157026bc1d298a..405f1c61069973305b9cec723e61e3dc93710e71 100644 (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)