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