summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorVincent Glize <vincent.glize@live.fr>2017-04-08 12:26:45 +0200
committerAuke Kok <sofar@foo-projects.org>2017-04-08 22:04:30 -0700
commit8ad3dad137df740ce63101bf224e977e66b9df2c (patch)
tree0e599de9bba2396e9500d30da849ae3f99f42ef1 /src/client.cpp
parent58d83a7bb2f992194c3df304b1dcbb81f98f78c0 (diff)
downloadminetest-8ad3dad137df740ce63101bf224e977e66b9df2c.tar.gz
minetest-8ad3dad137df740ce63101bf224e977e66b9df2c.tar.bz2
minetest-8ad3dad137df740ce63101bf224e977e66b9df2c.zip
LocalPlayer api lua
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
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);