mirror of
https://github.com/kepler155c/opus
synced 2025-10-22 11:17:40 +00:00
builder improvements
This commit is contained in:
@@ -72,10 +72,10 @@ function turtle.run(fn, ...)
|
||||
local s, m = pcall(function() fn(unpack(args)) end)
|
||||
turtle.abort = false
|
||||
releaseTicket(ticketId)
|
||||
os.queueEvent('turtle_response')
|
||||
if not s and m then
|
||||
printError(m)
|
||||
end
|
||||
os.queueEvent('turtle_response')
|
||||
return s, m
|
||||
end
|
||||
end
|
||||
|
@@ -30,6 +30,6 @@ end
|
||||
function turtle.setGPSHome()
|
||||
if turtle.enableGPS() then
|
||||
turtle.storeLocation('gpsHome', turtle.point)
|
||||
turtle.gotoPoint(tturtle.point)
|
||||
turtle.gotoPoint(turtle.point)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user