Skip to content

Commit

Permalink
Update netNav.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Dalethium authored Oct 25, 2021
1 parent e04ff7b commit c7b42ea
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion netNav/netNav.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ local function tryMove()
return false
end

local function findPosition()
function findPosition()
local move = turtle.up
while not tryMove() do
if not move() then
Expand Down Expand Up @@ -280,6 +280,10 @@ function getPosition()
end
end

function setHeading(dir)
position:setHeading(dir)
end

function addScanStrategy(strategy)
scanStrategy.add(strategy)
end

0 comments on commit c7b42ea

Please sign in to comment.