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) --[[