Attempt at making log printing prettier.

This commit is contained in:
Harrison Deng 2021-05-03 14:36:22 -05:00
parent 4385aa23a0
commit 9f6a4e5e1c

View File

@ -100,7 +100,7 @@ end
local function handleMessage(sender, type, data)
if type == LOG then
print("[" .. sender .. "]: " .. data["log"] .. " : " .. (data["content"] and textutils.serialise(data["content"]) or ""))
print("[" .. sender .. "]: " .. data["log"] .. " : " .. (data["content"]["n"] >= 1 and tostring(data["content"][1]) or ""))
elseif type == REQUEST then
handleRequest(sender, data["request"], data["content"])
end