Fixed reference to nil value.

This commit is contained in:
Harrison Deng 2021-05-03 14:23:52 -05:00
parent ddb56235ed
commit bf612b900c

View File

@ -100,9 +100,9 @@ end
local function handleMessage(sender, type, data)
if type == LOG then
print("[" .. unit .. "]: " .. data["log"] .. textutils.serialise(data["content"]))
print("[" .. sender .. "]: " .. data["log"] .. textutils.serialise(data["content"]))
elseif type == REQUEST then
handleRequest(unit, data["request"], data["content"])
handleRequest(sender, data["request"], data["content"])
end
end