From 53c7a7053d06af60388507c7d38252af1b96696a Mon Sep 17 00:00:00 2001 From: AnthraX1 Date: Sat, 31 Mar 2018 02:54:45 +1100 Subject: [PATCH] Fix empty key list bug in mfkeys.lua (#579) When input key list size is greater than 85, table.concat() returns empty because the last parameter is the end offset not the increment value. --- client/scripts/mfkeys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/scripts/mfkeys.lua b/client/scripts/mfkeys.lua index 33027d31..671ce03d 100644 --- a/client/scripts/mfkeys.lua +++ b/client/scripts/mfkeys.lua @@ -57,7 +57,7 @@ function checkBlock(blockNo, keys, keyType) while remaining > 0 do local n,data = remaining, nil if remaining > 85 then n = 85 end - local data = table.concat(keys,"",start,n) + local data = table.concat(keys, "", start, start + n - 1) --print("data",data) --print("data len", #data) print(("Testing block %d, keytype %d, with %d keys"):format(blockNo, keyType, n)) -- 2.39.2