Skip to content
Permalink
Browse files

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
  • Loading branch information...
DS-Minetest authored and nerzhul committed Jan 6, 2019
1 parent 6169eca commit 07c1c72aae71bd4405ec8e52bfa841b483de7198
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 07c1c72

Please sign in to comment.
You can’t perform that action at this time.