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:
parent
ff4fef570e
commit
f73534640a
6 changed files with 24 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue