rework turtle policies

This commit is contained in:
kepler155c@gmail.com
2019-01-17 13:31:05 -05:00
parent eabfde64e9
commit 644fd0352f
3 changed files with 111 additions and 101 deletions

View File

@@ -19,7 +19,7 @@ if turtle and modem then
s = turtle.enableGPS(2)
end
if not s and config.destructive then
turtle.setPolicy('turtleSafe')
turtle.set({ attackPolicy = 'attack', digPolicy = 'turtleSafe' })
s = turtle.enableGPS(2)
end
@@ -28,7 +28,7 @@ if turtle and modem then
end
if config.destructive then
turtle.setPolicy('turtleSafe')
turtle.set({ attackPolicy = 'attack', digPolicy = 'turtleSafe' })
end
if not turtle.pathfind(config.home) then