mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-15 17:35:37 +02:00
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
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user