]> git.lizzy.rs Git - xdecor.git/blobdiff - workbench.lua
Don't allow cut pieces from "forms" into "storage"
[xdecor.git] / workbench.lua
index 67daacddeb39a117b8c96039190cf8a800f2b6ca..3774912cbc01aee29d9b8a465611de1241a1fdc6 100644 (file)
@@ -171,8 +171,8 @@ function workbench.take(_, listname, _, stack, player)
        return stack:get_count()
 end
 
-function workbench.move(_, _, _, to_list, _, count)
-       if to_list == "storage" then return count end
+function workbench.move(_, from_list, _, to_list, _, count)
+       if to_list == "storage" and from_list ~= "forms" then return count end
        return 0
 end