mirror of
https://github.com/CommunityOx/ox_lib.git
synced 2026-08-16 22:46:03 +01:00
fix(class): private access in method calls
Maybe there's better ways, but if it works..?
This commit is contained in:
@@ -85,7 +85,7 @@ function mixins.new(class, ...)
|
||||
__index = function(self, index)
|
||||
local di = getinfo(2, 'n')
|
||||
|
||||
if di.namewhat ~= 'method' then return end
|
||||
if di.namewhat == 'local' then return end
|
||||
|
||||
return private[index]
|
||||
end,
|
||||
|
||||
Reference in New Issue
Block a user