More bugfixes.

This commit is contained in:
Emerson Rosen-Jones 2025-09-14 13:02:52 -04:00
parent 26016b36d9
commit 09298d8b06

View file

@ -28,17 +28,17 @@ target.electrum = peripheral.wrap""
local limits = {} local limits = {}
for _, type in ipairs(ITEM_TYPES) do for _, type in ipairs(ITEM_TYPES) do
limits[type] = { limits[type] = {
"nugget" = { stacks(4), stacks(8) }, nugget = { stacks(4), stacks(8) },
"ingot" = { stacks(4), stacks(8) }, ingot = { stacks(4), stacks(8) },
"block" = { stacks(4), stacks(1000) } block = { stacks(4), stacks(1000) }
} }
end end
-- Map types of conversions to specific faces -- Map types of conversions to specific faces
local convert = {} local convert = {}
convert["nugget_to_ingot"] = "front" convert.nugget_to_ingot = "front"
convert["ingot_to_block"] = "top" convert.ingot_to_block = "top"
convert["block_to_ingot"] = "back" convert.block_to_ingot = "back"
function sum_items (inv) function sum_items (inv)
-- organize list of item, count into item_type: (count_N, count_I, count_B) -- organize list of item, count into item_type: (count_N, count_I, count_B)