forked from Mirrorlandia_minetest/minetest
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
|
SCRIPTAPI_PRECHECKHEADER
|
||||||
|
|
||||||
// Get core.registered_on_chat_messages
|
// Get core.registered_on_player_receive_fields
|
||||||
lua_getglobal(L, "core");
|
lua_getglobal(L, "core");
|
||||||
lua_getfield(L, -1, "registered_on_player_receive_fields");
|
lua_getfield(L, -1, "registered_on_player_receive_fields");
|
||||||
// Call callbacks
|
// Call callbacks
|
||||||
|
Loading…
Reference in New Issue
Block a user