From 2c43ca6386e284e0774f768821b1ac38d4872732 Mon Sep 17 00:00:00 2001 From: justuswolff Date: Tue, 17 Feb 2026 02:04:05 +0100 Subject: [PATCH] fix invalid rendering --- src/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.lua b/src/main.lua index d0faf44..59a18e8 100644 --- a/src/main.lua +++ b/src/main.lua @@ -390,8 +390,8 @@ local function render(buf, pbuf, cx,cy,cz, tx,tz, sx,sz, shouldsetlist,invertsli reset() for x=1+camx,sx+camx,1 do for z=1+camy,sz+camy,1 do - local currentbuf = pbuf[posasstring(x-camx, cy, z-camy)] - term.setCursorPos(x, z) + local currentbuf = pbuf[posasstring(x, cy, z)] + term.setCursorPos(x-camx, z-camy) if currentbuf then -- wall term.blit(" ", colors.toBlit(colors.white), colors.toBlit(colors.white)) elseif (currentbuf == false or currentbuf == nil) and (invertslist and not tcontains(shouldsetlist, buf[posasstring(x, cy, z)]) or tcontains(shouldsetlist, buf[posasstring(x, cy, z)])) then -- nothing