You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workaround: if component.isAvailable("stargate") then sg = component.getPrimary("stargate") if sg.energyToDial(sg.localAddress()) then return true end end
The text was updated successfully, but these errors were encountered:
Nex4rius
changed the title
this shouldn't return true
computer interface - this shouldn't return true
Aug 21, 2017
I don't think this is incorrect; component.isAvailable is just testing whether there is an SG interface unit attached. Whether there is a stargate attached to the interface is another matter.
Workaround:
if component.isAvailable("stargate") then
sg = component.getPrimary("stargate")
if sg.energyToDial(sg.localAddress()) then
return true
end
end
The text was updated successfully, but these errors were encountered: