fix: use getter instead of accessing attribute

`name` is not an exported attribute of the Object table, so this always returned nil, failing all comparisons.
This commit is contained in:
Ciro García Belmonte
2024-11-05 04:18:33 +01:00
committed by GitHub
parent 8dd8e63d21
commit 00d4e6aee2

View File

@@ -523,7 +523,7 @@ basalt = {
getFrame = function(name)
for _, value in pairs(frames) do
if (value.name == name) then
if (value.getName() == name) then
return value
end
end
@@ -600,4 +600,4 @@ if(basaltPlugins~=nil)then
end
end
return basalt
return basalt