added even more debug prints
This commit is contained in:
5
main.lua
5
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
|
||||
|
||||
Reference in New Issue
Block a user