plethora import/export support + introspection module

This commit is contained in:
kepler155c
2018-03-29 07:04:56 -04:00
parent 08bc0d578e
commit 3d1ee74f0f
3 changed files with 104 additions and 3 deletions

View File

@@ -14,10 +14,10 @@ function RefinedAdapter:init(args)
local controller
if not self.side then
controller = Peripheral.getByMethod('listAvailableItems')
controller = Peripheral.getByMethod('getCraftingTasks')
else
controller = Peripheral.getBySide(self.side)
if controller and not controller.listAvailableItems then
if controller and not controller.getCraftingTasks then
controller = nil
end
end
@@ -28,7 +28,7 @@ function RefinedAdapter:init(args)
end
function RefinedAdapter:isValid()
return not not self.listAvailableItems
return not not self.getCraftingTasks
end
function RefinedAdapter:getItemDetails(item)