From dcdfe6e4421d8016e6e707c0b1a88a1e5d119b76 Mon Sep 17 00:00:00 2001 From: Linden <65407488+thelindat@users.noreply.github.com> Date: Thu, 18 Apr 2024 23:19:09 +1000 Subject: [PATCH] fix(class): private access in method calls Maybe there's better ways, but if it works..? --- imports/class/shared.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imports/class/shared.lua b/imports/class/shared.lua index bcbd258a6..1fed0906b 100644 --- a/imports/class/shared.lua +++ b/imports/class/shared.lua @@ -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,