Skip to content

Commit

Permalink
Fix wrong code comment (#8061)
Browse files Browse the repository at this point in the history
"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
  • Loading branch information
Desour authored and nerzhul committed Jan 6, 2019
1 parent 6169eca commit 07c1c72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/cpp_api/s_player.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 07c1c72

Please sign in to comment.