diff --git a/milo/apis/storage.lua b/milo/apis/storage.lua index 1855096..a4d19c4 100644 --- a/milo/apis/storage.lua +++ b/milo/apis/storage.lua @@ -327,7 +327,7 @@ function Storage:listProviders(throttle) if not res[key] then res[key] = {} end - table.insert(res[key], {item = item, device = device[chest], lockedToThis = Util.contains(Util.keys(self.nodes[chest].lock or {}), key) and true or false, slot = slot}) + table.insert(res[key], {item = item, device = device[chest], lockedToThis = (self.nodes[chest].lock or {})[key] or false, slot = slot}) end end return res