mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 02:51:49 +00:00
fix: lua setInterval stack overflow
This commit is contained in:
parent
fc34ca6875
commit
fe55b94ebd
5 changed files with 24 additions and 13 deletions
|
|
@ -277,6 +277,10 @@ bool scripting::register_event(int env, const std::string& name, const std::stri
|
|||
return false;
|
||||
}
|
||||
|
||||
int scripting::get_values_on_stack() {
|
||||
return lua::gettop(lua::get_main_thread());
|
||||
}
|
||||
|
||||
void scripting::load_block_script(const scriptenv& senv, const std::string& prefix, const fs::path& file, block_funcs_set& funcsset) {
|
||||
int env = *senv;
|
||||
std::string src = files::read_string(file);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue