diff options
author | sfan5 <sfan5@live.de> | 2021-05-25 20:20:16 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-05-30 11:40:14 +0200 |
commit | a0047d6edcb300afeca16a2a63c5a112082736f3 (patch) | |
tree | 634092331781cca4dd75f1b3885ba57f48a59a3b /src/script/lua_api/l_localplayer.cpp | |
parent | a12017c564782b2645b3020a6b998b116789c7cc (diff) | |
download | minetest-a0047d6edcb300afeca16a2a63c5a112082736f3.tar.gz minetest-a0047d6edcb300afeca16a2a63c5a112082736f3.tar.bz2 minetest-a0047d6edcb300afeca16a2a63c5a112082736f3.zip |
script: Replace calls to depreated luaL_openlib
Diffstat (limited to 'src/script/lua_api/l_localplayer.cpp')
-rw-r--r-- | src/script/lua_api/l_localplayer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/script/lua_api/l_localplayer.cpp b/src/script/lua_api/l_localplayer.cpp index 33fa27c8b..59d9ea5f8 100644 --- a/src/script/lua_api/l_localplayer.cpp +++ b/src/script/lua_api/l_localplayer.cpp @@ -446,7 +446,7 @@ void LuaLocalPlayer::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 } |