phase out peripheral.lookup

This commit is contained in:
kepler155c@gmail.com
2019-03-08 16:26:18 -05:00
parent 9392fe47f8
commit 3192dc52d7
4 changed files with 11 additions and 40 deletions

View File

@@ -1,15 +1,13 @@
_G.requireInjector(_ENV)
local GPS = require('gps')
local Util = require('util')
local Peripheral = require('peripheral')
local Point = require('point')
local Proxy = require('proxy')
local os = _G.os
local args = { ... }
local remoteId = args[1] or error('mobFollow <remote id>')
local ni = Peripheral.lookup(remoteId .. '://name/neuralInterface')
local ni = Proxy.create(remoteId, 'device/neuralInterface')
if not ni then
error('failed to connect')
@@ -46,4 +44,4 @@ while true do
end
os.sleep(.5)
end
end