From 2c19d51409ca903021e0b508e5bc15299c4e51dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Blot?= Date: Sun, 22 Jan 2017 11:17:41 +0100 Subject: [CSM] sound_play & sound_stop support + client_lua_api doc (#5096) * squashed: CSM: Implement register_globalstep * Re-use fatal error mechanism from server to disconnect client on CSM error * Little client functions cleanups * squashed: CSM: add core.after function * core.after is shared code between client & server * ModApiUtil get_us_time feature enabled for client --- src/client.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 3a3e0673e..3b8074252 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -263,6 +263,7 @@ Client::Client( g_settings->getBool("enable_parallax_occlusion")); m_script = new ClientScripting(this); + m_env.setScript(m_script); } void Client::initMods() -- cgit v1.2.3