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