fix: wrong idxstuff

This commit is contained in:
2025-05-08 01:09:08 -03:00
parent b0975519d1
commit 091811ad3f
+3 -2
View File
@@ -265,7 +265,9 @@ function drawLogs(x0, y0, x1, y1)
messageFG = prevColourFg messageFG = prevColourFg
end end
for lineIdx, line in ipairs(wrappedMessage) do for lineIdx=#wrappedMessage, 1, -1 do
local line = wrappedMessage[i]
if drawnLines > h then break end if drawnLines > h then break end
local currentY = y1 - drawnLines local currentY = y1 - drawnLines
@@ -289,7 +291,6 @@ function drawLogs(x0, y0, x1, y1)
term.write(line) term.write(line)
end end
drawnLines = drawnLines + 1 drawnLines = drawnLines + 1
end end
end end