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
+1 -1
View File
@@ -1,7 +1,7 @@
local agcfg = {
["halyde"] = {
["maindir"] = "",
["version"] = "1.8.7",
["version"] = "1.8.8",
["description"] = "A universal, customizable and feature-packed operating system for OpenComputers.",
["directories"] = {
"halyde/apps",
+1 -1
View File
@@ -4,7 +4,7 @@ Ahalyde/core/
Ahalyde/config/generate/
Ahalyde/apps/helpdb/
Ahalyde/apps/
V1.8.7
V1.8.8
Ainit.lua
Ahalyde/apps/helpdb/cat.txt
Ahalyde/apps/helpdb/cd.txt
+1 -1
View File
@@ -1,7 +1,7 @@
local loadfile = ...
local filesystem = loadfile("/halyde/lib/filesystem.lua")(loadfile)
_G._OSVERSION = "Halyde 1.8.7"
_G._OSVERSION = "Halyde 1.8.8"
_G._OSLOGO = ""
local handle, tmpdata = filesystem.open("/halyde/config/oslogo.ans", "r"), nil
repeat
+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