add failsafe to newdesign

This commit is contained in:
justuswolff
2026-02-16 20:37:52 +01:00
parent 439091048f
commit d115510042

View File

@@ -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