Add simple patch for weird edge case
This commit is contained in:
parent
1f9bbfac26
commit
b1b636b687
@ -32,6 +32,7 @@ local function cache(item, chest, slot)
|
|||||||
return info_cache[idx]
|
return info_cache[idx]
|
||||||
else
|
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 }
|
info_cache[idx] = { display_name = info.displayName, max_count = info.maxCount }
|
||||||
return info_cache[idx]
|
return info_cache[idx]
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user