mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-15 16:01:51 +00:00
fix registry access in generator scripts
This commit is contained in:
parent
d753c74858
commit
ab129367ad
1 changed files with 4 additions and 0 deletions
|
|
@ -196,6 +196,10 @@ void lua::init_state(State* L, StateType stateType) {
|
||||||
if (stateType == StateType::GENERATOR) {
|
if (stateType == StateType::GENERATOR) {
|
||||||
pushnil(L);
|
pushnil(L);
|
||||||
setglobal(L, "ffi");
|
setglobal(L, "ffi");
|
||||||
|
|
||||||
|
static const char* removed_debug[] {
|
||||||
|
"getregistry", "getupvalue", "setupvalue", "getinfo", nullptr};
|
||||||
|
remove_lib_funcs(L, "debug", removed_debug);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue