move scripts back for turtles program
This commit is contained in:
7
common/etc/scripts/goHome
Normal file
7
common/etc/scripts/goHome
Normal file
@@ -0,0 +1,7 @@
|
||||
_G.requireInjector(_ENV)
|
||||
local config = require('config').load('gps')
|
||||
if config.home then
|
||||
if turtle.enableGPS() then
|
||||
return turtle.pathfind(config.home)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user