fix this because it was broken

This commit is contained in:
Ocawesome101 2021-05-28 09:03:39 +10:00
parent 4789084da2
commit 1035c8d5cb

View File

@ -50,7 +50,7 @@ function api.register(address, ctype, proxy, doc)
end
components[address] = {address = address, type = ctype, doc = doc or {}}
components[address].rawproxy = proxy
components[address].proxy = {}
components[address].proxy = {address = address, type = ctype, slot = -1}
for k,v in pairs(proxy) do
if type(v) == "function" then
components[address].proxy[k] = setmetatable({name=k,address=address}, componentCallback)