forked from izaya/LuPPC
Merge pull request 'fix component proxies not having all the requisite fields' (#1) from Ocawesome101/LuPPC:master into master
This commit is contained in:
commit
8570a59cab
@ -50,7 +50,7 @@ function api.register(address, ctype, proxy, doc)
|
|||||||
end
|
end
|
||||||
components[address] = {address = address, type = ctype, doc = doc or {}}
|
components[address] = {address = address, type = ctype, doc = doc or {}}
|
||||||
components[address].rawproxy = proxy
|
components[address].rawproxy = proxy
|
||||||
components[address].proxy = {}
|
components[address].proxy = {address = address, type = ctype, slot = -1}
|
||||||
for k,v in pairs(proxy) do
|
for k,v in pairs(proxy) do
|
||||||
if type(v) == "function" then
|
if type(v) == "function" then
|
||||||
components[address].proxy[k] = setmetatable({name=k,address=address}, componentCallback)
|
components[address].proxy[k] = setmetatable({name=k,address=address}, componentCallback)
|
||||||
|
Loading…
Reference in New Issue
Block a user