Posted 08 September 2014 - 07:44 PM
instead of wrapping it for you, it should return the side where the found peripheral is on.
why?
because when you are using rednet, wanting it to find a modem for you so you dont have to hardcode a side in. when you try to do this, it returns the modem object instead of the side. wich is not usable with rednet.
this will also allow the user to decide what to do with the side, not just to use the peripheral, but also to give instructions, for example "please insert a valid module into the right side sensor". or of course this is usefull for rednet.
this change is fairly easy to change, just remove the part were it wraps the peripheral and return the side instead
how will this affect my programs?
change
PLEASE leave a reply with what you think, as i fond it nice when people accually tell me what they think instead of just looking at the post ;)/>
why?
because when you are using rednet, wanting it to find a modem for you so you dont have to hardcode a side in. when you try to do this, it returns the modem object instead of the side. wich is not usable with rednet.
this will also allow the user to decide what to do with the side, not just to use the peripheral, but also to give instructions, for example "please insert a valid module into the right side sensor". or of course this is usefull for rednet.
this change is fairly easy to change, just remove the part were it wraps the peripheral and return the side instead
how will this affect my programs?
change
local p = peripheral.find("monitor")
tolocal p = peripheral.wrap(periperal.find("monitor"))
PLEASE leave a reply with what you think, as i fond it nice when people accually tell me what they think instead of just looking at the post ;)/>