Fix uniform random

This commit is contained in:
Dominic Zimmer 2020-07-10 23:34:11 +02:00
parent be2c995f86
commit 8a1f5d0768

View File

@ -645,7 +645,7 @@ function goToUnloading()
moveSafe(turtle.up, turtle.inspectUp, turtle.digUp) moveSafe(turtle.up, turtle.inspectUp, turtle.digUp)
goToCoordXZ2(7, -6, noop) goToCoordXZ2(7, -6, noop)
moveSafe(turtle.up, turtle.inspectUp, turtle.digUp) moveSafe(turtle.up, turtle.inspectUp, turtle.digUp)
slot = math.ceil(math.random()*5) slot = math.random(5)
storageX, storageZ = slots[slot][1], slots[slot][2] storageX, storageZ = slots[slot][1], slots[slot][2]
goToCoordXZ2(storageX, storageZ, noop) goToCoordXZ2(storageX, storageZ, noop)
moveSafe(turtle.up, turtle.inspectUp, turtle.digUp) moveSafe(turtle.up, turtle.inspectUp, turtle.digUp)