1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

[CSM] Remove on_connect callback (#6941)

Fixes #6939
This commit is contained in:
red-001 2018-01-21 17:27:27 +00:00 committed by Loïc Blot
parent 5dab742645
commit 49ff1d2ea8
6 changed files with 13 additions and 45 deletions

View file

@ -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