From: James Stevenson Date: Wed, 18 May 2016 11:59:36 +0000 (-0400) Subject: Don't allow cut pieces from "forms" into "storage" X-Git-Tag: 1.0~42 X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=be6448864fc107c76eb53be6219a452c44685677;p=xdecor.git Don't allow cut pieces from "forms" into "storage" --- diff --git a/workbench.lua b/workbench.lua index 67daacd..3774912 100644 --- a/workbench.lua +++ b/workbench.lua @@ -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