From 4b2d10c2b85f213937fb5569202e1a2e1a4214f3 Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Sun, 10 Nov 2019 13:18:44 +0800 Subject: [PATCH] fix user-defined event translator in libevent --- libs/libevent.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libevent.lua b/libs/libevent.lua index 9b6154b..80ee855 100644 --- a/libs/libevent.lua +++ b/libs/libevent.lua @@ -308,7 +308,7 @@ local function TranslateEvent(e) internal_evtbex[name](e,t) -- Unknown Events. Args is packed into t.data (instead of returning the list) else - t["data"]=table.pack(e,2) + t["data"]=table.pack(table.unpack(e, 2)) end setmetatable(t,{__index=function(xt,xk)