Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- modemFound = false
- for _,side in pairs(rs.getSides()) do
- if peripheral.getType(side) == "modem" then
- print("Modem found")
- rednet.open(side)
- modemFound = true
- break
- end
- end
- if not modemFound then
- print("No modem found- exiting")
- return --or something
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement