mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix "cannot resume dead coroutine" for servers
This commit is contained in:
parent
8489c36df7
commit
1bd3463488
7 changed files with 78 additions and 24 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue