mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
document environment inheritance
This commit is contained in:
parent
d1c61153c9
commit
cfd4c5b454
1 changed files with 1 additions and 1 deletions
|
|
@ -407,7 +407,7 @@ int lua::LuaState::createEnvironment(int parent) {
|
|||
|
||||
// setmetatable(env, {__index=_G})
|
||||
lua_createtable(L, 0, 1);
|
||||
if (parent == 0 || true) {
|
||||
if (parent == 0) {
|
||||
lua_pushvalue(L, LUA_GLOBALSINDEX);
|
||||
} else {
|
||||
if (pushenv(parent) == 0) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue