From b431e1a0a618314da04d103b4684b438807fcb6d Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 20:26:46 -0500 Subject: [PATCH] added even more debug prints --- main.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.lua b/main.lua index 83e24d1..891843f 100644 --- a/main.lua +++ b/main.lua @@ -387,10 +387,15 @@ local function populateThrusterValues() for _, transmissionType in ipairs(TransmissionTypes) do local transmissions = { peripheral.find(transmissionType) } if transmissions ~= nil and transmissions[1] ~= nil then + if Config.Debug then print("DEBUG: transmission of type "..transmissionType.." found.") end for _, transmission in ipairs(transmissions) do + local thisTransmissionId = transmission.getSelfId() + if Config.Debug then print("DEBUG: Comparing subnetwork IDs values: "..thisTransmissionId.." == "..subnetworkId) end if transmission.getSelfId() == subnetworkId then if Config.Debug then print("DEBUG: Detected that thruster "..thruster.name.." is connected to transmission "..peripheral.getName(transmission)) end thruster.transmission = peripheral.getName(transmission) + elseif Config.Debug then + print("DEBUG: Comparison inequal") end end elseif Config.Debug then