Fix wrong code comment (#8061)

"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
This commit is contained in:
DS 2019-01-06 17:21:04 +01:00 committed by Loïc Blot
parent 6169ecaa4a
commit 07c1c72aae

@ -195,7 +195,7 @@ void ScriptApiPlayer::on_playerReceiveFields(ServerActiveObject *player,
{ {
SCRIPTAPI_PRECHECKHEADER SCRIPTAPI_PRECHECKHEADER
// Get core.registered_on_chat_messages // Get core.registered_on_player_receive_fields
lua_getglobal(L, "core"); lua_getglobal(L, "core");
lua_getfield(L, -1, "registered_on_player_receive_fields"); lua_getfield(L, -1, "registered_on_player_receive_fields");
// Call callbacks // Call callbacks