summaryrefslogtreecommitdiff
path: root/server/src/matcher/find_lib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/matcher/find_lib.lua')
-rw-r--r--server/src/matcher/find_lib.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/matcher/find_lib.lua b/server/src/matcher/find_lib.lua
index e4ea6e02..c4d5bff3 100644
--- a/server/src/matcher/find_lib.lua
+++ b/server/src/matcher/find_lib.lua
@@ -1,4 +1,7 @@
local function findLib(var)
+ if var.type ~= 'local' and var.type ~= 'field' then
+ return nil
+ end
local value = var.value
local lib = value.lib
if not lib then