summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--storage.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/storage.lua b/storage.lua
index 5128acd..237d058 100644
--- a/storage.lua
+++ b/storage.lua
@@ -12,6 +12,13 @@ local chests = {}
for _,ty in ipairs(chest_types) do
-- don't want sides, only ones over a network
local tc = { peripheral.find(ty,function(n,p) return not sides[n] end) }
- for _,c in ipairs(tc) do chests[c] = true end
+ for _,chest in ipairs(tc) do
+ local name = peripheral.getName(chest)
+ chests[name] = {
+ content = chest.list()
+ size = chest.size()
+ pphl = chest
+ }
+ end
end
return chests