From 3245afa15638edc57f7694bd05be48ddc1d1e1ad Mon Sep 17 00:00:00 2001 From: Dystroyer8 Date: Sat, 18 Jul 2026 01:05:05 +0200 Subject: [PATCH] Handle unlabeled CC computers in factory debug --- create_factory_debug.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/create_factory_debug.lua b/create_factory_debug.lua index 4ce91fb..e4eab44 100644 --- a/create_factory_debug.lua +++ b/create_factory_debug.lua @@ -115,7 +115,8 @@ table.sort(names) emit("ATM10 CREATE FACTORY PERIPHERAL DEBUG") emit("Computer ID: " .. tostring(os.getComputerID())) -emit("Computer label: " .. tostring(os.getComputerLabel())) +local computerLabel = os.getComputerLabel() +emit("Computer label: " .. tostring(computerLabel or "")) emit("Uptime timer/clock: " .. tostring(os.clock())) emit("Peripheral count: " .. tostring(#names)) emit(string.rep("=", 72))