From 00d4e6aee2a779baf7b49666a06b1595fc6a4bb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ciro=20Garc=C3=ADa=20Belmonte?= Date: Tue, 5 Nov 2024 04:18:33 +0100 Subject: [PATCH] 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. --- Basalt/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Basalt/main.lua b/Basalt/main.lua index 206700c..05ffc48 100644 --- a/Basalt/main.lua +++ b/Basalt/main.lua @@ -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 \ No newline at end of file +return basalt