style: format

This commit is contained in:
2025-05-08 20:42:12 -03:00
parent b85f7e29f2
commit e47713e0c3
+5 -2
View File
@@ -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[1],
turt.position[2], turt.position[3], turt.fuel, turt.channel, turt.id, turt.status) 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)
--[[ --[[