TheGameBoy_95

Untitled

May 19th, 2019
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. function wrap(side)
  2. if peripheral.getType(side) == "sensor" then
  3. return peripheral.wrap(side)
  4. else
  5. return nil, "not a sensor"
  6. end
  7. end
  8.  
  9. function call(side, ...)
  10. if peripheral.getType(side) == "sensor" then
  11. return peripheral.call(side, ...)
  12. else
  13. return nil, "not a sensor"
  14. end
  15. end
Add Comment
Please, Sign In to add comment