plethora import/export support + introspection module

This commit is contained in:
kepler155c
2018-03-29 05:04:34 -04:00
parent 55f49a1127
commit 08bc0d578e
3 changed files with 33 additions and 13 deletions

View File

@@ -14,10 +14,11 @@ function ChestAdapter:init(args)
local chest
if not self.side then
chest = Peripheral.getByMethod('list') or Peripheral.getByMethod('listAvailableItems')
chest = Peripheral.getByMethod('list')
-- or Peripheral.getByMethod('listAvailableItems')
else
chest = Peripheral.getBySide(self.side)
if chest and not chest.list and not chest.listAvailableItems then
if chest and not chest.list then -- and not chest.listAvailableItems then
chest = nil
end
end