it did break, lets try again

This commit is contained in:
2026-01-02 00:11:53 -05:00
parent ea31b33ea5
commit 9224f22395

View File

@ -88,17 +88,13 @@ end
---------------------------------------------
function events.pullEvent(filter)
while true do
local eventData = { os.pullEvent(filter) }
local eventType = eventData[1]
local eventData = { os.pullEvent(filter) }
local eventType = eventData[1]
local result = events.dispatch(eventType, table.unpack(eventData))
local result = events.dispatch(eventType, table.unpack(eventData))
-- If a handler processed the event and returned something, return it
if result ~= nil then
return result, eventType, eventData
end
end
-- Return the result (even if nil), the event type, and the full event data
return result, eventType, eventData
end
function events.waitForAny(...)