From f2c04457d9a6eebbbb8906687d24c00c9fbe9afc Mon Sep 17 00:00:00 2001 From: osmarks Date: Thu, 26 Jul 2018 16:15:48 +0100 Subject: [PATCH] Fix typo --- backend-chests.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend-chests.lua b/backend-chests.lua index a92febc..16d89d7 100644 --- a/backend-chests.lua +++ b/backend-chests.lua @@ -21,7 +21,7 @@ local nameCache = {} local function get_cache_name(item) local n = item.name .. ":" .. item.damage - + print(textutils.serialise(item)) end -- Gets the display name of the given item (in the given chest peripheral & slot) @@ -104,7 +104,7 @@ local function search(query, threshold) return d.sort(results, function(x) return x.extra end) -- sort returned results by closeness to query end -local fetch_by_location(loc, limit) +local function fetch_by_location(loc, limit) local peripheral_name, slot, limit = loc.inventory, loc.slot, limit or 64 return peripheral.call(conf.buffer_internal, "pullItems", peripheral_name, slot, limit, BUFFER_OUT_SLOT) end