From d72ca4a727c7a4637a3cfe23f9d63f08646baadc Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 8 May 2025 20:36:20 -0300 Subject: [PATCH] fix: handle invocation when no turtles are available --- lua/CC Tweaked/tutel/tutel-host.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/CC Tweaked/tutel/tutel-host.lua b/lua/CC Tweaked/tutel/tutel-host.lua index 33e13a7..21e5ba7 100644 --- a/lua/CC Tweaked/tutel/tutel-host.lua +++ b/lua/CC Tweaked/tutel/tutel-host.lua @@ -340,6 +340,11 @@ end registerConsoleCommand("clear", clearCommand) function turtlesCommand() + if #turtles == 0 then + log.info("no turtles registered") + return + end + for i=0, #turtles, 1 do local turt = turtles[i]