1.7.10 compatibility

This commit is contained in:
kepler155c
2018-03-11 17:24:12 -04:00
parent 1e59c9301f
commit c1f6ac11e1
2 changed files with 26 additions and 9 deletions

View File

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