1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02:00

LocalPlayer api lua

This commit is contained in:
Vincent Glize
2017-04-08 12:26:45 +02:00
committed by Auke Kok
parent 58d83a7bb2
commit 8ad3dad137
7 changed files with 640 additions and 2 deletions

View File

@@ -1865,8 +1865,10 @@ void Client::afterContentReceived(IrrlichtDevice *device)
m_state = LC_Ready;
sendReady();
if (g_settings->getBool("enable_client_modding"))
if (g_settings->getBool("enable_client_modding")) {
m_script->on_client_ready(m_env.getLocalPlayer());
m_script->on_connect();
}
text = wgettext("Done!");
draw_load_screen(text, device, guienv, 0, 100);