diff options
author | SmallJoker <mk939@ymail.com> | 2019-06-25 21:18:08 +0200 |
---|---|---|
committer | SmallJoker <mk939@ymail.com> | 2019-09-14 19:42:25 +0200 |
commit | 23677be951b4dc2b9cc174ceb92f0e0b8e8eb867 (patch) | |
tree | 87e8a9bee105bbe77d964e109d0cefd1102f07e7 /src/script/scripting_client.cpp | |
parent | 720aedb46740ba203b4a0f3e049e368abc4932b3 (diff) | |
download | minetest-23677be951b4dc2b9cc174ceb92f0e0b8e8eb867.tar.gz minetest-23677be951b4dc2b9cc174ceb92f0e0b8e8eb867.tar.bz2 minetest-23677be951b4dc2b9cc174ceb92f0e0b8e8eb867.zip |
Load CSM environment after the restrictions are known
Safety-guards for CSM callbacks to abort on a bad implementation
Only run callbacks when the mods are loaded (and with it: builtin)
Duplication checks inside constructors
Diffstat (limited to 'src/script/scripting_client.cpp')
-rw-r--r-- | src/script/scripting_client.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/script/scripting_client.cpp b/src/script/scripting_client.cpp index 86e5f2874..239c98e57 100644 --- a/src/script/scripting_client.cpp +++ b/src/script/scripting_client.cpp @@ -84,8 +84,7 @@ void ClientScripting::InitializeModApi(lua_State *L, int top) void ClientScripting::on_client_ready(LocalPlayer *localplayer) { - lua_State *L = getStack(); - LuaLocalPlayer::create(L, localplayer); + LuaLocalPlayer::create(getStack(), localplayer); } void ClientScripting::on_camera_ready(Camera *camera) |