fix: sort loop

This commit is contained in:
2025-05-08 01:17:54 -03:00
parent aaa63e5293
commit 42f8d24b76
+3 -3
View File
@@ -265,11 +265,11 @@ function drawLogs(x0, y0, x1, y1)
messageFG = prevColourFg messageFG = prevColourFg
end end
for lineIdx=#wrappedMessage, 1, -1 do for lineIdx = #wrappedMessage, 1, -1 do
local line = wrappedMessage[i]
if drawnLines > h then break end if drawnLines > h then break end
local line = wrappedMessage[i]
local currentY = y1 - drawnLines local currentY = y1 - drawnLines
term.setCursorPos(1, currentY) term.setCursorPos(1, currentY)