mirror of
https://github.com/kepler155c/opus
synced 2025-10-14 15:27:40 +00:00
turtle.unequip + justified headings bug
This commit is contained in:
@@ -935,6 +935,13 @@ function turtle.isEquipped(item)
|
||||
end
|
||||
end
|
||||
|
||||
function turtle.unequip(side)
|
||||
if not turtle.selectSlotWithQuantity(0) then
|
||||
return false, 'No slots available'
|
||||
end
|
||||
return turtle.equip(side)
|
||||
end
|
||||
|
||||
-- [[ ]] --
|
||||
function turtle.run(fn, ...)
|
||||
local args = { ... }
|
||||
@@ -980,6 +987,12 @@ function turtle.addWorldBlock(pt)
|
||||
Pathing.addBlock(pt)
|
||||
end
|
||||
|
||||
function turtle.addWorldBlocks(pts)
|
||||
Util.each(pts, function(pt)
|
||||
Pathing.addBlock(pt)
|
||||
end)
|
||||
end
|
||||
|
||||
local movementStrategy = turtle.pathfind
|
||||
|
||||
function turtle.setMovementStrategy(strategy)
|
||||
|
Reference in New Issue
Block a user