diff --git a/minehost.lua b/minehost.lua index 21123ab..5007d0e 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.serialiseJSON(data["content"]) or "")) + print("[" .. sender .. "]: " .. data["log"] .. " : " .. (data["content"] and textutils.serialise(data["content"]) or "")) elseif type == REQUEST then handleRequest(sender, data["request"], data["content"]) end diff --git a/mineleader.lua b/mineleader.lua index 64692a8..4c9e25b 100644 --- a/mineleader.lua +++ b/mineleader.lua @@ -278,7 +278,7 @@ local function determineHeading() end local function moveBy(delta, forward, right) - sendLog("Attempting to move by (" .. delta.x .. "," .. delta.y .. "," .. delta.z .. ") (x,y,z).") + sendLog(MOVEBY, "Attempting to move by (" .. delta.x .. "," .. delta.y .. "," .. delta.z .. ") (x,y,z).") -- x first if delta.x ~= 0 then sendLog(MOVEBY, "Moving on x axis by: " .. delta.x)