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
master
DS 2019-01-06 17:21:04 +01:00 committed by Loïc Blot
parent 6169ecaa4a
commit 07c1c72aae
1 changed files with 1 additions and 1 deletions

View File

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