V2.03.02 with changes according to issues #22, #23, #24, #25, #26

This commit is contained in:
Joachim Stolberg 2019-05-09 21:48:16 +02:00
parent e7b1da2636
commit 824ed5cb18

@ -260,7 +260,8 @@ local function distributing(pos, meta)
local num = num_items(moved_items, name, kvFilterItemNames, rejected) local num = num_items(moved_items, name, kvFilterItemNames, rejected)
if num then if num then
local item = tubelib.get_this_item(meta, "src", kvSrc[name], num) -- <<=== tubelib local item = tubelib.get_this_item(meta, "src", kvSrc[name], num) -- <<=== tubelib
if item and (not kvNumOccur[item:get_name()] or kvNumOccur[item:get_name()] < 2) then if item then
if not kvNumOccur[item:get_name()] or kvNumOccur[item:get_name()] < 2 then
if not tubelib.push_items(pos, side, item, player_name) then -- <<=== tubelib if not tubelib.push_items(pos, side, item, player_name) then -- <<=== tubelib
tubelib.put_item(meta, "src", item) tubelib.put_item(meta, "src", item)
else else
@ -268,6 +269,9 @@ local function distributing(pos, meta)
moved_items = moved_items + num moved_items = moved_items + num
moved_items_total = moved_items_total + num moved_items_total = moved_items_total + num
end end
else
tubelib.put_item(meta, "src", item)
end
end end
end end
end end