mirror of
https://github.com/kepler155c/opus
synced 2025-10-23 03:37:40 +00:00
relative-gps coord system
This commit is contained in:
@@ -2143,13 +2143,14 @@ UI:setPages({
|
||||
})
|
||||
|
||||
UI:setPage('start')
|
||||
turtle.setPolicy(turtle.policies.digAttack)
|
||||
turtle.setPoint({ x = -1, z = -1, y = 0, heading = 0 })
|
||||
turtle.saveLocation('supplies')
|
||||
turtle.status = 'idle'
|
||||
turtle.abort = false
|
||||
|
||||
Event.pullEvents()
|
||||
turtle.run(function()
|
||||
turtle.setPolicy(turtle.policies.digAttack)
|
||||
turtle.setPoint({ x = -1, z = -1, y = 0, heading = 0 })
|
||||
turtle.getState().coordSystem = 'relative'
|
||||
turtle.saveLocation('supplies')
|
||||
Event.pullEvents()
|
||||
end)
|
||||
|
||||
UI.term:reset()
|
||||
turtle.status = 'idle'
|
||||
--turtle.status = 'idle'
|
||||
|
@@ -387,9 +387,6 @@ __BUILDER_ID = tonumber(args[1])
|
||||
|
||||
maxStackDB:load()
|
||||
|
||||
turtle.setPoint({ x = -1, z = -2, y = 0, heading = 0 })
|
||||
turtle.saveLocation('supplies')
|
||||
|
||||
Builder.itemProvider = MEProvider()
|
||||
if not Builder.itemProvider:isValid() then
|
||||
Builder.itemProvider = ChestProvider()
|
||||
@@ -399,5 +396,10 @@ if not Builder.itemProvider:isValid() then
|
||||
end
|
||||
|
||||
turtle.run(function()
|
||||
turtle.setPoint({ x = -1, z = -2, y = 0, heading = 0 })
|
||||
turtle.getState().coordSystem = 'relative'
|
||||
|
||||
turtle.saveLocation('supplies')
|
||||
|
||||
Event.pullEvents(onTheWay)
|
||||
end)
|
||||
|
Reference in New Issue
Block a user