Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- m={}
- if PipeSide and peripheral.getType(PipeSide)=="LogisticsPipes:Request" then
- m=peripheral.wrap(PipeSide)
- else
- if peripheral.find then --Checks to see if peripheral.find exists at all
- m=peripheral.find("LogisticsPipes:Request")
- else
- m=findPeripheral("LogisticsPipes:Request") --This isn't as nice as peripheral.find(), but it'll work.
- end
- end
- if not m then
- error("No request pipe found.")
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement