From: DS Date: Sun, 6 Jan 2019 16:21:04 +0000 (+0100) Subject: Fix wrong code comment (#8061) X-Git-Tag: 5.0.0~88 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07c1c72aae71bd4405ec8e52bfa841b483de7198;p=oweals%2Fminetest.git 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 --- 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