mirror of
https://github.com/minetest/minetest.git
synced 2024-11-05 07:13:46 +01:00
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
This commit is contained in:
parent
6169ecaa4a
commit
07c1c72aae
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user