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

[CSM] Add event on_connect player API lua (#5540)

* Add event on_connect player API lua
This commit is contained in:
Vincent Glize 2017-04-08 08:20:30 +02:00 committed by Loïc Blot
parent ff4fef570e
commit f73534640a
6 changed files with 24 additions and 0 deletions

View file

@ -1864,6 +1864,10 @@ void Client::afterContentReceived(IrrlichtDevice *device)
m_state = LC_Ready;
sendReady();
if (g_settings->getBool("enable_client_modding"))
m_script->on_connect();
text = wgettext("Done!");
draw_load_screen(text, device, guienv, 0, 100);
infostream<<"Client::afterContentReceived() done"<<std::endl;