add failsafe to newdesign
This commit is contained in:
@@ -112,7 +112,7 @@ local function newdesign()
|
||||
term.setCursorPos(x, z)
|
||||
if currentbuf == 1 then -- wall
|
||||
term.blit(" ", colors.toBlit(colors.white), colors.toBlit(colors.white))
|
||||
elseif currentbuf > 1 then -- blocks
|
||||
elseif currentbuf and currentbuf > 1 then -- blocks
|
||||
renderblock(currentbuf-1)
|
||||
--term.blit("C", colors.toBlit(colors.black), colors.toBlit(colors.red))
|
||||
elseif currentbuf == 0 or currentbuf == nil then -- nothing
|
||||
|
||||
Reference in New Issue
Block a user