turtle gps rework

This commit is contained in:
kepler155c@gmail.com
2019-02-22 03:53:40 -05:00
parent 70a3bd1166
commit f37dac0c79
11 changed files with 195 additions and 139 deletions

View File

@@ -1,3 +1,7 @@
_G.requireInjector(_ENV)
local Home = require('turtle.home')
turtle.run(Home.go)
local config = require('config').load('gps')
if config.home then
if turtle.enableGPS() then
return turtle.pathfind(config.home)
end
end