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