added nil check for transmission list in populateThrusterValues

This commit is contained in:
2026-06-29 19:48:22 -05:00
parent 539fdd92fe
commit ab8d65f477

View File

@@ -426,9 +426,11 @@ local function populateThrusterValues()
local subnetworkId = peripheral.wrap(thruster.name).getSubnetworkAnchorId()
for _, transmissionType in ipairs(TransmissionTypes) do
local transmissions = peripheral.find(transmissionType)
for _, transmission in ipairs(transmissions) do
if transmission.getSelfId() == subnetworkId then
thruster.transmission = peripheral.getName(transmission)
if transmissions ~= nil and transmissions[1] ~= nil then
for _, transmission in ipairs(transmissions) do
if transmission.getSelfId() == subnetworkId then
thruster.transmission = peripheral.getName(transmission)
end
end
end
end