From b1b636b68753e5ae9e23b582866b1d3076f07c9e Mon Sep 17 00:00:00 2001 From: osmarks Date: Sat, 25 Aug 2018 22:14:09 +0100 Subject: [PATCH] Add simple patch for weird edge case --- backend-chests.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend-chests.lua b/backend-chests.lua index fbd9dee..ad2539c 100644 --- a/backend-chests.lua +++ b/backend-chests.lua @@ -31,7 +31,8 @@ local function cache(item, chest, slot) if info_cache[idx] then return info_cache[idx] else - local info = chest.getItemMeta(slot) + local info = chest.getItemMeta(slot) + sleep() -- probably will slow things, but important to reduce peripheral calls a second info_cache[idx] = { display_name = info.displayName, max_count = info.maxCount } return info_cache[idx] end