mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 09:25:37 +02:00
A few initialization cleanups
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user