Update pairing.lua

This commit is contained in:
Dominic Zimmer 2020-07-04 12:56:17 +02:00
parent 4db5bc77dd
commit de2b2995f3

View File

@ -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)