mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +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:
@@ -99,9 +99,9 @@ bool Camera::successfullyCreated(std::string &error_message)
|
||||
error_message.clear();
|
||||
}
|
||||
|
||||
if (g_settings->getBool("enable_client_modding")) {
|
||||
if (m_client->modsLoaded())
|
||||
m_client->getScript()->on_camera_ready(this);
|
||||
}
|
||||
|
||||
return error_message.empty();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user