Fix yet another oopsle

This commit is contained in:
osmarks 2018-07-28 13:34:27 +01:00
parent b665eff7fb
commit 2f046e6007

View File

@ -186,7 +186,7 @@ end
local function collate_stacks(s)
local out = {}
for _, stack in pairs(s) do
local i = w.get_internal_identifier(stack)
local i = get_internal_identifier(stack)
if out[i] then out[i].count = out[i].count + stack.count
else out[i] = stack end
end
@ -240,4 +240,4 @@ local function init()
d.map(find_peripherals(function(type, name, wrapped) return type == "modem" end), function(p) rednet.open(p.name) end)
end
return { errors = errors, serve = serve, query_by_ID = query_by_ID, query_by_type = query_by_type, get_internal_identifier = get_internal_identifier, load_config = load_config, find_peripherals = find_peripherals, init = init, collate = collate, satisfied = satisfied, collate_stacks = collate_stacks }
return { errors = errors, serve = serve, query_by_ID = query_by_ID, query_by_type = query_by_type, get_internal_identifier = get_internal_identifier, load_config = load_config, find_peripherals = find_peripherals, init = init, collate = collate, satisfied = satisfied, collate_stacks = collate_stacks }