From 57e0872455d5e4058c8010e08f9dc4a28983ccc5 Mon Sep 17 00:00:00 2001 From: justuswolff Date: Tue, 17 Feb 2026 15:00:56 +0100 Subject: [PATCH] render no ceilings on next floor --- src/main.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.lua b/src/main.lua index 5707fb5..6fe3453 100644 --- a/src/main.lua +++ b/src/main.lua @@ -116,7 +116,11 @@ local function newdesign() renderblock(currentbuf-1) --term.blit("C", colors.toBlit(colors.black), colors.toBlit(colors.red)) elseif currentbuf == 0 or currentbuf == nil then -- nothing - term.blit("\127", colors.toBlit(colors.gray), colors.toBlit(colors.black)) + if buf[posasstring(x-camx, currentfloor-1, z-camy)] == 2 then + term.blit("\127", colors.toBlit(colors.red), colors.toBlit(colors.black)) + else + term.blit("\127", colors.toBlit(colors.gray), colors.toBlit(colors.black)) + end end end end