added even more debug prints

This commit is contained in:
2026-06-29 20:26:46 -05:00
parent 13f970af76
commit b431e1a0a6

View File

@@ -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