diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 741e1c2..8b33e71 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -265,7 +265,9 @@ function drawLogs(x0, y0, x1, y1) messageFG = prevColourFg end - for lineIdx, line in ipairs(wrappedMessage) do + for lineIdx=#wrappedMessage, 1, -1 do + local line = wrappedMessage[i] + if drawnLines > h then break end local currentY = y1 - drawnLines @@ -289,7 +291,6 @@ function drawLogs(x0, y0, x1, y1) term.write(line) end - drawnLines = drawnLines + 1 end end