mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
auto lua modules removal on quit
This commit is contained in:
parent
241570ac82
commit
fcb396344c
2 changed files with 23 additions and 12 deletions
|
|
@ -124,6 +124,9 @@ void scripting::on_world_quit() {
|
|||
state->callNoThrow(0);
|
||||
}
|
||||
}
|
||||
if (state->getglobal("__scripts_cleanup")) {
|
||||
state->callNoThrow(0);
|
||||
}
|
||||
scripting::level = nullptr;
|
||||
scripting::content = nullptr;
|
||||
scripting::indices = nullptr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue