From ce22e630ee88c16dc7ca7f94c2984b8a4b281c40 Mon Sep 17 00:00:00 2001 From: jp Date: Thu, 6 Aug 2015 18:18:27 +0200 Subject: [PATCH] Work Table : prevent moving stuff in slots to each other --- worktable.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/worktable.lua b/worktable.lua index 3655e18..08b2fd8 100644 --- a/worktable.lua +++ b/worktable.lua @@ -116,6 +116,10 @@ function worktable.put(pos, listname, index, stack, player) return count end +function worktable.move(pos, from_list, from_index, to_list, to_index, count, player) + return 0 +end + xdecor.register("worktable", { description = "Work Table", groups = {cracky=2}, @@ -128,7 +132,8 @@ xdecor.register("worktable", { on_construct = worktable.construct, on_receive_fields = worktable.fields, can_dig = worktable.dig, - allow_metadata_inventory_put = worktable.put + allow_metadata_inventory_put = worktable.put, + allow_metadata_inventory_move = worktable.move }) for _, m in pairs(material) do