From 5802c9372dce77c04a7096a469502baa94087e8d Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 3 May 2021 14:31:24 -0500 Subject: [PATCH] Added some spacing to log output. Also changed to json to see if it looks better. --- minehost.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minehost.lua b/minehost.lua index fc8909c..21123ab 100644 --- a/minehost.lua +++ b/minehost.lua @@ -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"] and textutils.serialiseJSON(data["content"]) or "")) elseif type == REQUEST then handleRequest(sender, data["request"], data["content"]) end