From 07c1c72aae71bd4405ec8e52bfa841b483de7198 Mon Sep 17 00:00:00 2001 From: DS Date: Sun, 6 Jan 2019 17:21:04 +0100 Subject: [PATCH] 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 --- src/script/cpp_api/s_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/cpp_api/s_player.cpp b/src/script/cpp_api/s_player.cpp index 100434fc3..fac86295a 100644 --- a/src/script/cpp_api/s_player.cpp +++ b/src/script/cpp_api/s_player.cpp @@ -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 -- 2.25.1