mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
[CSM] Add event on_connect player API lua (#5540)
* Add event on_connect player API lua
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user