diff options
author | Vincent Glize <vincent.glize@live.fr> | 2017-04-08 12:26:45 +0200 |
---|---|---|
committer | Auke Kok <sofar@foo-projects.org> | 2017-04-08 22:04:30 -0700 |
commit | 8ad3dad137df740ce63101bf224e977e66b9df2c (patch) | |
tree | 0e599de9bba2396e9500d30da849ae3f99f42ef1 /src/client.cpp | |
parent | 58d83a7bb2f992194c3df304b1dcbb81f98f78c0 (diff) | |
download | minetest-8ad3dad137df740ce63101bf224e977e66b9df2c.tar.gz minetest-8ad3dad137df740ce63101bf224e977e66b9df2c.tar.bz2 minetest-8ad3dad137df740ce63101bf224e977e66b9df2c.zip |
LocalPlayer api lua
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client.cpp b/src/client.cpp index 3a3e33cfd..246525f62 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -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); |