Check if there is a task in status report.

This commit is contained in:
Harrison Deng 2021-05-03 14:51:55 -05:00
parent 81ea39dc0a
commit b8916c6dd3

View File

@ -382,7 +382,7 @@ local function listen()
right=rightAxis
},
fuel=turtle.getFuelLevel(),
task=task["name"]
task=(task and task["name"] or "nothing")
}
sendLog(STATUS, status)
elseif data["request"] == POSITION then