1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

A few initialization cleanups

This commit is contained in:
sfan5 2020-04-10 21:45:07 +02:00 committed by Loïc Blot
parent aa3cf400e2
commit f105bc8dc2
4 changed files with 18 additions and 6 deletions

View file

@ -55,9 +55,6 @@ ClientScripting::ClientScripting(Client *client):
InitializeModApi(L, top);
lua_pop(L, 1);
if (client->getMinimap())
LuaMinimap::create(L, client->getMinimap());
// Push builtin initialization type
lua_pushstring(L, "client");
lua_setglobal(L, "INIT");
@ -94,3 +91,8 @@ void ClientScripting::on_camera_ready(Camera *camera)
{
LuaCamera::create(getStack(), camera);
}
void ClientScripting::on_minimap_ready(Minimap *minimap)
{
LuaMinimap::create(getStack(), minimap);
}