v1.8.8 - Fixed event.pull() not working when an event type is not specified.

This commit is contained in:
TheWahlolly
2025-06-07 08:42:54 +03:00
parent 3dfab2a6c1
commit d2287e3d42
4 changed files with 9 additions and 9 deletions
+6 -6
View File
@@ -20,15 +20,15 @@ function event.pull(...)
-- Check event queue for matching event
for i = 1, #evmgr.eventQueue do
local foundevent = false
for _, evtype in pairs(evtypes) do
if evtypes[1] then -- event type(s) specified
if evtypes[1] then -- event type(s) specified
for _, evtype in pairs(evtypes) do
if evmgr.eventQueue[i][2] == evtype and evmgr.eventQueue[i][1] >= startTime then
foundevent = true
end
else -- event type(s) not specified
if evmgr.eventQueue[i][1] >= startTime then
foundevent = true
end
end
else
if evmgr.eventQueue[i][1] >= startTime then
foundevent = true
end
end
if foundevent then