mirror of
https://github.com/joe7575/techpack.git
synced 2024-11-26 09:03:46 +01: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
|
||||||
|
Loading…
Reference in New Issue
Block a user