aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_noise.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-05-25 20:20:16 +0200
committersfan5 <sfan5@live.de>2021-05-30 11:40:14 +0200
commita0047d6edcb300afeca16a2a63c5a112082736f3 (patch)
tree634092331781cca4dd75f1b3885ba57f48a59a3b /src/script/lua_api/l_noise.cpp
parenta12017c564782b2645b3020a6b998b116789c7cc (diff)
downloadhax-minetest-server-a0047d6edcb300afeca16a2a63c5a112082736f3.tar.gz
hax-minetest-server-a0047d6edcb300afeca16a2a63c5a112082736f3.zip
script: Replace calls to depreated luaL_openlib
Diffstat (limited to '')
-rw-r--r--src/script/lua_api/l_noise.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script/lua_api/l_noise.cpp b/src/script/lua_api/l_noise.cpp
index e0861126a..f43ba837a 100644
--- a/src/script/lua_api/l_noise.cpp
+++ b/src/script/lua_api/l_noise.cpp
@@ -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);