From 3ab9bc411f27df62f3a9f722a1793d2e2f5fdbe2 Mon Sep 17 00:00:00 2001 From: templeofshadow Date: Mon, 29 Jun 2026 20:41:46 -0500 Subject: [PATCH] attempt a different approach at finding transmissions --- main.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.lua b/main.lua index 1c6954e..85db087 100644 --- a/main.lua +++ b/main.lua @@ -257,7 +257,7 @@ function PropellerInit() for pi, pv in ipairs(propellers) do if Thrusters[peripheral.getName(pv)] == nil then for _, tv in pairs(transmissions) do - if pv.getSubnetworkAnchorId() == tv.getSelfId() then + if pv.getSourceId() == tv.getSelfId() then if Thrusters[peripheral.getName(pv)] == nil then Thrusters[peripheral.getName(pv)] = { type = "rotator", @@ -383,7 +383,7 @@ local function populateThrusterValues() end if thruster.type == "rotator" and thruster.transmission == nil then if Config.Debug then print("DEBUG: Thruster "..thruster.name.." does not have an associated transmission.") end - local subnetworkId = peripheral.wrap(thruster.name).getSubnetworkAnchorId() + local subnetworkId = peripheral.wrap(thruster.name).getSourceId() for _, transmissionType in ipairs(TransmissionTypes) do local transmissions = { peripheral.find(transmissionType) } if transmissions ~= nil and transmissions[1] ~= nil then @@ -524,7 +524,7 @@ local function partiallyUpdateThrusters(thrusterList) for _, tt in ipairs(TransmissionTypes) do local transmissions = peripheral.find(tt) for _, t in ipairs(transmissions) do - if tv.getSubnetworkAnchorId() == t.getSelfId() then + if tv.getSourceId() == t.getSelfId() then thisThruster.transmission = peripheral.getName(t) end end