Browse Source

more fixes for makefloor

master
unknown 13 years ago
parent
commit
7746998019
  1. 7
      makefloor

7
makefloor

@ -1,6 +1,5 @@
local args = { ... } local args = { ... }
--[[ --[[
local function placeholder() return true end local function placeholder() return true end
local turtle = {} local turtle = {}
@ -18,14 +17,16 @@ turtle.placeDown = placeholder
turtle.select = placeholder turtle.select = placeholder
]] ]]
turnedLeft = nil local turnedLeft = nil
if args[1] == "rightturn" or args[1] == "leftturn" then if args[1] == "rightturn" or args[1] == "leftturn" then
local turnedLeft = (args[1] == "rightturn") turnedLeft = (args[1] == "rightturn")
else else
print("usage: \"makefloor [leftturn|rightturn]\" whatever the first turn may be") print("usage: \"makefloor [leftturn|rightturn]\" whatever the first turn may be")
return return
end end
print(turnedLeft)
local curContainer = 1 local curContainer = 1
turtle.select(curContainer) turtle.select(curContainer)