fix: typo
This commit is contained in:
@@ -214,24 +214,24 @@ local function drawLogs(x0, y0, x1, y1)
|
||||
|
||||
term.setCursorPos(1, endY - drawnLines)
|
||||
|
||||
ocal prevColourBg = term.getBackgroundColour()
|
||||
local prevColourFg = term.getTextColour()
|
||||
local prevColourBg = term.getBackgroundColour()
|
||||
local prevColourFg = term.getTextColour()
|
||||
|
||||
term.setBackgroundColour(format["BG"])
|
||||
term.setTextColour(format["FG"])
|
||||
term.write(("[%s]"):format(entry.type))
|
||||
term.setBackgroundColour(format["BG"])
|
||||
term.setTextColour(format["FG"])
|
||||
term.write(("[%s]"):format(entry.type))
|
||||
|
||||
if format["AffectContent"] then
|
||||
term.write((" %s\n"):format(entry.message))
|
||||
term.setBackgroundColour(prevColourBg)
|
||||
term.setTextColour(prevColourFg)
|
||||
else
|
||||
term.setBackgroundColour(prevColourBg)
|
||||
term.setTextColour(prevColourFg)
|
||||
term.write((" %s\n"):format(entry.message))
|
||||
end
|
||||
if format["AffectContent"] then
|
||||
term.write((" %s\n"):format(entry.message))
|
||||
term.setBackgroundColour(prevColourBg)
|
||||
term.setTextColour(prevColourFg)
|
||||
else
|
||||
term.setBackgroundColour(prevColourBg)
|
||||
term.setTextColour(prevColourFg)
|
||||
term.write((" %s\n"):format(entry.message))
|
||||
end
|
||||
|
||||
drawnLines = drawnLines + 1
|
||||
drawnLines = drawnLines + 1
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user