From 0396caf149564e623d3c62969b6b067ddf8d8fd0 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Mon, 3 May 2021 14:59:56 -0500 Subject: [PATCH] Fixed printing reference instead of info. --- minehost.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/minehost.lua b/minehost.lua index 9d545ae..d629a88 100644 --- a/minehost.lua +++ b/minehost.lua @@ -101,8 +101,8 @@ local function handleMessage(sender, type, data) if type == LOG then print("[" .. sender .. "]: " .. data["log"] .. ": " .. (data["content"]["n"] >= 1 and tostring(data["content"][1]) or "")) if data["log"] == STATUS then - print("Relative position: " .. data["content"][1]["relative_position"]["coordinates"]) - print("Position: " .. (data["content"][1]["position"]["coordinates"] and data["content"][1]["position"]["coordinates"] or "not positioned.")) + print("Relative position: " .. textutils.serializeJSON(data["content"][1]["relative_position"]["coordinates"])) + print("Position: " .. (data["content"][1]["position"]["coordinates"] and textutils.serialiseJSON(data["content"][1]["position"]["coordinates"]) or "not positioned.")) print("fuel: " .. tostring(data["content"][1]["fuel"])) print("current task: " .. data["content"][1]["task"]) end