From 648673169840b889851101080763383dd91e86a3 Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 20:39:10 -0300 Subject: [PATCH] fix: bad index --- lua/CC Tweaked/tutel/tutel-host.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 21e5ba7..e3e472d 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -344,11 +344,11 @@ function turtlesCommand() log.info("no turtles registered") return end - + for i=0, #turtles, 1 do local turt = turtles[i] - local turtleMessage = ("coords: %x, %x, %x - fuel: %d - channel: %d - id: %d - status: %s"):format(position[1], + local turtleMessage = ("coords: %x, %x, %x - 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)