Skip to content

Commit fd16310

Browse files
committed
fix: also include effect table members in client proxy
1 parent 3e8c235 commit fd16310

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/clientProxy.luau

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ return function(constructor, ...)
2727
return reservedFunctions[index]
2828
end
2929

30-
local foundMethod = constructor[index]
31-
logger.assert(foundMethod ~= nil, `Effect is missing method "{index}" to call!`)
30+
local found = effect[index]
31+
logger.assert(found ~= nil, `Effect is missing method "{index}" to call!`)
3232
logger.assert(not effect.IsDestroyed, `Cannot :{index}() after effect has been destroyed.`)
3333

34-
return foundMethod
34+
return found
3535
end
3636

3737
function mt.__newindex(_self, index)

0 commit comments

Comments
 (0)