gcewing / SGCraft

Stargates mod for Minecraft
http://www.cosc.canterbury.ac.nz/greg.ewing/minecraft/mods/SGCraft/
MIT License
11 stars 50 forks source link

computer interface - this shouldn't return true #46

Open Nex4rius opened 7 years ago

Nex4rius commented 7 years ago

Workaround: if component.isAvailable("stargate") then sg = component.getPrimary("stargate") if sg.energyToDial(sg.localAddress()) then return true end end

gcewing commented 7 years ago

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.