added a break in populateThrusterValues to break out of loop when transmission is found
This commit is contained in:
1
main.lua
1
main.lua
@@ -394,6 +394,7 @@ local function populateThrusterValues()
|
|||||||
if transmission.getSelfId() == subnetworkId then
|
if transmission.getSelfId() == subnetworkId then
|
||||||
if Config.Debug then print("DEBUG: Detected that thruster "..thruster.name.." is connected to transmission "..peripheral.getName(transmission)) end
|
if Config.Debug then print("DEBUG: Detected that thruster "..thruster.name.." is connected to transmission "..peripheral.getName(transmission)) end
|
||||||
thruster.transmission = peripheral.getName(transmission)
|
thruster.transmission = peripheral.getName(transmission)
|
||||||
|
break
|
||||||
elseif Config.Debug then
|
elseif Config.Debug then
|
||||||
print("DEBUG: Comparison inequal")
|
print("DEBUG: Comparison inequal")
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user