mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
script: Replace calls to depreated luaL_openlib
This commit is contained in:
parent
a12017c564
commit
a0047d6edc
17 changed files with 22 additions and 22 deletions
|
@ -450,7 +450,7 @@ void LuaVoxelManip::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1); // drop metatable
|
||||
|
||||
luaL_openlib(L, 0, methods, 0); // fill methodtable
|
||||
luaL_register(L, nullptr, methods); // fill methodtable
|
||||
lua_pop(L, 1); // drop methodtable
|
||||
|
||||
// Can be created from Lua (VoxelManip())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue