jdf221 / CC-WirelessPeripheral

An implementation of the Computer Craft peripheral API allowing the use of wireless modems
MIT License
13 stars 4 forks source link

Fix return type on find() #9

Closed jdf221 closed 5 months ago

jdf221 commented 5 months ago

nativePeripheral.find() returns multiple values so it needs to be wrapped in a table. Then we can add the found remote peripheral to that table. When we return from find() we have to unpack the table.