MightyPirates / OpenComputers

Home of the OpenComputers mod for Minecraft.
https://oc.cil.li
Other
1.59k stars 430 forks source link

fix openos /bin/components.lua to be compatible with getter/setter fields in component proxies #2315

Closed payonel closed 7 years ago

payonel commented 7 years ago

openos /bin/components.lua expects __tostring, via tostring(proxy[method]), to invoke component.doc which is only set as a metamethod redirection for methods, not for fields (i.e. getter/setters)

The fix would be to call the component.doc api directly, and not rely on __tostring

payonel commented 7 years ago

fixed in 0543d0eaf582eb5ae1b89c80579c955fe5465b6f