mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
content-pack specific variables PACK_ENV and PACK_ID
This commit is contained in:
parent
49fe2108d3
commit
617017d979
5 changed files with 19 additions and 3 deletions
|
|
@ -181,6 +181,11 @@ int lua::LuaState::pushenv(int env) {
|
|||
return 0;
|
||||
}
|
||||
|
||||
int lua::LuaState::pushvalue(int idx) {
|
||||
lua_pushvalue(L, idx);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int lua::LuaState::pushglobals() {
|
||||
lua_pushvalue(L, LUA_GLOBALSINDEX);
|
||||
return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue