diff --git a/src/main/programs/turtle-roomCreator.lua b/src/main/programs/turtle-roomCreator.lua index cdde1cf..1c96bf7 100644 --- a/src/main/programs/turtle-roomCreator.lua +++ b/src/main/programs/turtle-roomCreator.lua @@ -4,12 +4,12 @@ function excavate(depth, width, height) -- Digging a layer for w = 1, width do -- Digging a row - for d = 1, depth do + for d = 1, depth-1 do turtle.dig() -- Digging forward turtle.forward() -- Moving forward end --move to start of row - for d = 1, depth do + for d = 1, depth-1 do turtle.back() end @@ -18,7 +18,7 @@ function excavate(depth, width, height) turtle.turnRight() turtle.dig() turtle.forward() - turte.turnLeft() + turtle.turnLeft() end end @@ -31,7 +31,7 @@ function excavate(depth, width, height) --go to next layer if not last layer if h