mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
post-runnables
This commit is contained in:
parent
a94f949be6
commit
c7bc4bb463
4 changed files with 24 additions and 0 deletions
|
|
@ -97,6 +97,12 @@ std::unique_ptr<Environment> scripting::create_doc_environment(int parent, const
|
|||
return std::make_unique<Environment>(id);
|
||||
}
|
||||
|
||||
void scripting::process_post_runnables() {
|
||||
if (state->getglobal("__process_post_runnables")) {
|
||||
state->callNoThrow(0);
|
||||
}
|
||||
}
|
||||
|
||||
void scripting::on_world_load(Level* level, BlocksController* blocks) {
|
||||
scripting::level = level;
|
||||
scripting::content = level->content;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue