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
|
@ -122,7 +122,7 @@ void LuaPerlinNoise::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
luaL_register(L, nullptr, methods);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_register(L, className, create_object);
|
||||
|
@ -380,7 +380,7 @@ void LuaPerlinNoiseMap::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
luaL_register(L, nullptr, methods);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_register(L, className, create_object);
|
||||
|
@ -485,7 +485,7 @@ void LuaPseudoRandom::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
luaL_register(L, nullptr, methods);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_register(L, className, create_object);
|
||||
|
@ -584,7 +584,7 @@ void LuaPcgRandom::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
luaL_register(L, nullptr, methods);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_register(L, className, create_object);
|
||||
|
@ -699,7 +699,7 @@ void LuaSecureRandom::Register(lua_State *L)
|
|||
|
||||
lua_pop(L, 1);
|
||||
|
||||
luaL_openlib(L, 0, methods, 0);
|
||||
luaL_register(L, nullptr, methods);
|
||||
lua_pop(L, 1);
|
||||
|
||||
lua_register(L, className, create_object);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue