Closed LittleTimmy52 closed 1 year ago
local event = require("event")
Event name filtering is OpenOS-only feature. MineOS adheres to the principle of "purity" of libraries without redundant checks, so you have to add them yourself:
while true do
local eventType, _, from, port, _, message = event.pull()
if eventType == "modem_message" then
-- Do something
end
end
UPD: I should probably create a separate method like event.pullFiltered()
that supports specific stuff - that would be a compromise. Although it’s not a fact that someone would open the wiki at all and read about its presence xd
It works upuntil it trys to receive a message
error:
![Capture1](https://user-images.githubusercontent.com/90333044/196064743-475c2bde-3493-4335-812b-75c90c62c67f.PNG)
code: