From 7623abf8b3258969b6c9e23bb582008bced4eafc Mon Sep 17 00:00:00 2001 From: Oversword Date: Wed, 4 Aug 2021 00:12:48 +0100 Subject: [PATCH] Allow entire stacks to be pulled from the highperf distributor --- tubelib_addons3/distributor.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tubelib_addons3/distributor.lua b/tubelib_addons3/distributor.lua index eb5ee71..6d4ef85 100644 --- a/tubelib_addons3/distributor.lua +++ b/tubelib_addons3/distributor.lua @@ -508,6 +508,9 @@ tubelib.register_node("tubelib_addons3:distributor", on_pull_item = function(pos, side) return tubelib.get_item(M(pos), "src") end, + on_pull_stack = function(pos, side) + return tubelib.get_stack(M(pos), "src") + end, on_push_item = function(pos, side, item) return tubelib.put_item(M(pos), "src", item) end,