Advertisement
osmarks

TrilateratorShared

Jul 27th, 2018
1,810
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. command_channel, message_channel = 16180, 57721
  2.  
  3. wireless = true
  4. wired = false
  5.  
  6. function on_all_modems(wireless, f, ...)
  7. local modems = {peripheral.find("modem", function(_, m) return m.isWireless() == wireless end)}
  8. for _, m in pairs(modems) do
  9. m[f](...)
  10. end
  11. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement