Don't allow cut pieces from "forms" into "storage"

This commit is contained in:
James Stevenson 2016-05-18 07:59:36 -04:00 committed by Auke Kok
parent 3fc8daf227
commit be6448864f

View File

@ -171,8 +171,8 @@ function workbench.take(_, listname, _, stack, player)
return stack:get_count() return stack:get_count()
end end
function workbench.move(_, _, _, to_list, _, count) function workbench.move(_, from_list, _, to_list, _, count)
if to_list == "storage" then return count end if to_list == "storage" and from_list ~= "forms" then return count end
return 0 return 0
end end