fix "cannot resume dead coroutine" for servers

This commit is contained in:
MihailRis
2025-07-26 17:08:45 +03:00
parent 8489c36df7
commit 1bd3463488
7 changed files with 78 additions and 24 deletions
+4 -1
View File
@@ -34,7 +34,10 @@ local function complete_app_lib(app)
app.reconfig_packs = core.reconfig_packs
app.get_setting = core.get_setting
app.set_setting = core.set_setting
app.tick = coroutine.yield
app.tick = function()
coroutine.yield()
network.__pull_events()
end
app.get_version = core.get_version
app.get_setting_info = core.get_setting_info
app.load_content = function()