summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-11 05:25:11 -0400
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2017-04-11 05:25:25 -0400
commit64f38f423e5c5b7a94a127cc80aa31dd6469adea (patch)
tree232183ec6a32e623443cb143d16dd6c05c3ca072
parentceead2b5ab7183375d034cb900d0c2bbfe3d3c06 (diff)
tool workshop shouldn't ever allow stack splitting
(tools don't stack :) )
-rw-r--r--technic/machines/MV/tool_workshop.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/technic/machines/MV/tool_workshop.lua b/technic/machines/MV/tool_workshop.lua
index 9219717..4076cc1 100644
--- a/technic/machines/MV/tool_workshop.lua
+++ b/technic/machines/MV/tool_workshop.lua
@@ -103,8 +103,7 @@ minetest.register_node("technic:tool_workshop", {
allow_metadata_inventory_take = technic.machine_inventory_take,
tube = {
can_insert = function (pos, node, stack, direction)
- local onestack = stack:peek_item(1)
- return minetest.get_meta(pos):get_inventory():room_for_item("src", onestack)
+ return minetest.get_meta(pos):get_inventory():room_for_item("src", stack)
end,
insert_object = function (pos, node, stack, direction)
return minetest.get_meta(pos):get_inventory():add_item("src", stack)