mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
script: Replace calls to depreated luaL_openlib
This commit is contained in:
@@ -228,7 +228,7 @@ void LuaRaycast::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);
|
||||
|
Reference in New Issue
Block a user