plethora import/export support

This commit is contained in:
kepler155c
2018-03-29 14:22:02 -04:00
parent 3d1ee74f0f
commit 1bf79de220
4 changed files with 45 additions and 52 deletions

View File

@@ -14,11 +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 then -- and not chest.listAvailableItems then
if chest and not chest.list and not chest.listAvailableItems then
chest = nil
end
end