diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/src/matcher/definition.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/server/src/matcher/definition.lua b/server/src/matcher/definition.lua index a7221f29..4b7b04c5 100644 --- a/server/src/matcher/definition.lua +++ b/server/src/matcher/definition.lua @@ -132,11 +132,11 @@ end function mt:searchSimple(simple) local name = simple[1] - if name.type ~= 'name' then - return + local var + if name.type == 'name' then + var = self:getVar(name[1], name) + self:checkVar(var, name) end - local var = self:getVar(name[1], name) - self:checkVar(var, name) for i = 2, #simple do local obj = simple[i] local tp = obj.type |