mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-02 16:38:41 +00:00
parent
5dab742645
commit
49ff1d2ea8
6 changed files with 13 additions and 45 deletions
|
@ -1698,7 +1698,6 @@ void Client::afterContentReceived()
|
|||
|
||||
if (g_settings->getBool("enable_client_modding")) {
|
||||
m_script->on_client_ready(m_env.getLocalPlayer());
|
||||
m_script->on_connect();
|
||||
}
|
||||
|
||||
text = wgettext("Done!");
|
||||
|
|
|
@ -36,17 +36,6 @@ void ScriptApiClient::on_shutdown()
|
|||
runCallbacks(0, RUN_CALLBACKS_MODE_FIRST);
|
||||
}
|
||||
|
||||
void ScriptApiClient::on_connect()
|
||||
{
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
||||
// get registered connect hooks
|
||||
lua_getglobal(L, "core");
|
||||
lua_getfield(L, -1, "registered_on_connect");
|
||||
// Call callback
|
||||
runCallbacks(0, RUN_CALLBACKS_MODE_FIRST);
|
||||
}
|
||||
|
||||
bool ScriptApiClient::on_sending_message(const std::string &message)
|
||||
{
|
||||
SCRIPTAPI_PRECHECKHEADER
|
||||
|
|
|
@ -40,8 +40,6 @@ public:
|
|||
// Calls on_shutdown handlers
|
||||
void on_shutdown();
|
||||
|
||||
void on_connect();
|
||||
|
||||
// Chat message handlers
|
||||
bool on_sending_message(const std::string &message);
|
||||
bool on_receiving_message(const std::string &message);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue