style: format
This commit is contained in:
@@ -337,23 +337,26 @@ registerConsoleCommand("scan", scanCommand)
|
||||
function clearCommand()
|
||||
log.buffer = {}
|
||||
end
|
||||
|
||||
registerConsoleCommand("clear", clearCommand)
|
||||
|
||||
function turtlesCommand()
|
||||
if #turtles == 0 then
|
||||
if #turtles == 0 then
|
||||
log.info("no turtles registered")
|
||||
return
|
||||
end
|
||||
|
||||
for i=1, #turtles, 1 do
|
||||
for i = 1, #turtles, 1 do
|
||||
local turt = turtles[i]
|
||||
|
||||
local turtleMessage = ("coords: %d, %d, %d - fuel: %d - channel: %d - id: %d - status: %s"):format(turt.position[1],
|
||||
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status)
|
||||
local turtleMessage = ("coords: %d, %d, %d - fuel: %d - channel: %d - id: %d - status: %s"):format(
|
||||
turt.position[1],
|
||||
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status)
|
||||
|
||||
log.info(turtleMessage)
|
||||
end
|
||||
end
|
||||
|
||||
registerConsoleCommand("turtles", turtlesCommand)
|
||||
|
||||
--[[
|
||||
|
||||
Reference in New Issue
Block a user