mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-22 23:33:44 +01:00
parent
e7b1da2636
commit
824ed5cb18
@ -260,13 +260,17 @@ 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 tubelib.push_items(pos, side, item, player_name) then -- <<=== tubelib
|
if not kvNumOccur[item:get_name()] or kvNumOccur[item:get_name()] < 2 then
|
||||||
tubelib.put_item(meta, "src", item)
|
if not tubelib.push_items(pos, side, item, player_name) then -- <<=== tubelib
|
||||||
|
tubelib.put_item(meta, "src", item)
|
||||||
|
else
|
||||||
|
counter[listname] = counter[listname] + num
|
||||||
|
moved_items = moved_items + num
|
||||||
|
moved_items_total = moved_items_total + num
|
||||||
|
end
|
||||||
else
|
else
|
||||||
counter[listname] = counter[listname] + num
|
tubelib.put_item(meta, "src", item)
|
||||||
moved_items = moved_items + num
|
|
||||||
moved_items_total = moved_items_total + num
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user