Advertisement
kizeren

Untitled

Aug 17th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. m={}
  2. if PipeSide and peripheral.getType(PipeSide)=="LogisticsPipes:Request" then
  3. m=peripheral.wrap(PipeSide)
  4. else
  5. if peripheral.find then --Checks to see if peripheral.find exists at all
  6. m=peripheral.find("LogisticsPipes:Request")
  7. else
  8. m=findPeripheral("LogisticsPipes:Request") --This isn't as nice as peripheral.find(), but it'll work.
  9. end
  10. end
  11. if not m then
  12. error("No request pipe found.")
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement