Update pairing.lua
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
args = {...}
|
||||
|
||||
function pair(x, y)
|
||||
return math.floor((x + y) * (x + y + 1)/2 + y)
|
||||
end
|
||||
@@ -49,6 +51,7 @@ function digTo(x, z)
|
||||
turtle.digUp()
|
||||
x = x - 1
|
||||
end
|
||||
end
|
||||
|
||||
function digSpot(i)
|
||||
x, z = ithSpot(i)
|
||||
@@ -57,7 +60,6 @@ function digSpot(i)
|
||||
turtle.down()
|
||||
end
|
||||
|
||||
args = {...}
|
||||
spotnum = tonumber(args[1])
|
||||
if spotnum then
|
||||
digSpot(spotNum)
|
||||
|
||||
Reference in New Issue
Block a user