diff options
author | Crollie Rollz <crollierollz@gmail.com> | 2022-04-03 02:47:37 +0800 |
---|---|---|
committer | Crollie Rollz <crollierollz@gmail.com> | 2022-04-03 03:08:27 +0800 |
commit | cd032f35f1922c663b0a67c41adee4996d5cb858 (patch) | |
tree | 5551a00700c06f6d29d77a147e52eb1098b0b099 /script | |
parent | 9f46e568af0a63e0db46596de3b32c779d27c5cd (diff) | |
download | lua-language-server-cd032f35f1922c663b0a67c41adee4996d5cb858.zip |
fix(infer): check second arg for event name
Diffstat (limited to 'script')
-rw-r--r-- | script/core/noder.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/noder.lua b/script/core/noder.lua index 1e502339..2a60baee 100644 --- a/script/core/noder.lua +++ b/script/core/noder.lua @@ -887,7 +887,8 @@ local function compileCallParam(noders, call, sourceID) local eventNodeID for firstIndex, callArg in ipairs(call.args) do firstIndex = firstIndex - fixIndex - if firstIndex == 1 and callArg.type == 'string' then + if (firstIndex == 1 or firstIndex == 2) + and callArg.type == 'string' then if callArg[1] then eventNodeID = sformat('%s%s%s' , nodeID |