remove dependency on device global + milo backup config

This commit is contained in:
kepler155c@gmail.com
2019-03-11 23:48:53 -04:00
parent f2a8a7e639
commit b43761faf1
21 changed files with 79 additions and 125 deletions

View File

@@ -4,7 +4,6 @@ local Project = require('neural.project')
local UI = require('ui')
local Util = require('util')
local device = _G.device
local peripheral = _G.peripheral
local turtle = _G.turtle
@@ -13,9 +12,9 @@ local function equip(side, rawName)
end
local target = nil
local ni = device.neuralInterface
local ni = peripheral.find('neuralInterface')
local sensor = ni or
device['plethora:sensor'] or
peripheral.find('plethora:sensor') or
peripheral.find('manipulator') or
equip('left', 'plethora:module:3')