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
|
|
@ -90,7 +90,7 @@ public:
|
|||
}
|
||||
|
||||
void update() override {
|
||||
if (id == 0) {
|
||||
if (!alive || id == 0) {
|
||||
return;
|
||||
}
|
||||
if (lua::requireglobal(L, "__vc_resume_coroutine")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue