diff options
author | Jude Melton-Houghton <jwmhjwmh@gmail.com> | 2022-10-18 18:01:44 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-18 18:01:44 -0400 |
commit | b38ffdec279bcded98e34f5116c8d676aa9f73a7 (patch) | |
tree | 31cafdb009b2f81b61a96286a3800a8e408f8f3d /src/script/cpp_api/s_security.cpp | |
parent | 23e9f5db4330a6efee5270160a3959422926ce77 (diff) | |
download | minetest-b38ffdec279bcded98e34f5116c8d676aa9f73a7.tar.xz |
Implement vector and node conversion in Lua (#12609)
Co-authored-by: sfan5 <sfan5@live.de>
Diffstat (limited to 'src/script/cpp_api/s_security.cpp')
-rw-r--r-- | src/script/cpp_api/s_security.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/script/cpp_api/s_security.cpp b/src/script/cpp_api/s_security.cpp index d34e15f4e..0d989ae04 100644 --- a/src/script/cpp_api/s_security.cpp +++ b/src/script/cpp_api/s_security.cpp @@ -98,7 +98,6 @@ void ScriptApiSecurity::initializeSecurity() "type", "unpack", "_VERSION", - "vector", "xpcall", }; static const char *whitelist_tables[] = { @@ -253,10 +252,6 @@ void ScriptApiSecurity::initializeSecurity() lua_pushnil(L); lua_setfield(L, old_globals, "core"); - // 'vector' as well. - lua_pushnil(L); - lua_setfield(L, old_globals, "vector"); - lua_pop(L, 1); // Pop globals_backup @@ -299,7 +294,6 @@ void ScriptApiSecurity::initializeSecurityClient() "type", "unpack", "_VERSION", - "vector", "xpcall", // Completely safe libraries "coroutine", |