Fix wrong code comment (#8061)
authorDS <vorunbekannt75@web.de>
Sun, 6 Jan 2019 16:21:04 +0000 (17:21 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sun, 6 Jan 2019 16:21:04 +0000 (17:21 +0100)
"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

index 100434fc35048955cd849f5e16df438c424afe30..fac86295ab8af0e30e1a1c2b3affed798c818376 100644 (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