]> git.lizzy.rs Git - xdecor.git/commitdiff
Don't allow cut pieces from "forms" into "storage"
authorJames Stevenson <everamzah@users.noreply.github.com>
Wed, 18 May 2016 11:59:36 +0000 (07:59 -0400)
committerAuke Kok <sofar@foo-projects.org>
Wed, 18 May 2016 21:51:29 +0000 (14:51 -0700)
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