fix: wrong idxstuff
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user