From e47713e0c3093c22b8380bc3b609b7103cd4fe0f Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 20:42:12 -0300 Subject: [PATCH] style: format --- lua/CC Tweaked/tutel/tutel-host.lua | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index a10964d..48813fa 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -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) --[[