projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6169eca
)
Fix wrong code comment (#8061)
author
DS
<vorunbekannt75@web.de>
Sun, 6 Jan 2019 16:21:04 +0000
(17:21 +0100)
committer
Loï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
patch
|
blob
|
history
diff --git
a/src/script/cpp_api/s_player.cpp
b/src/script/cpp_api/s_player.cpp
index 100434fc35048955cd849f5e16df438c424afe30..fac86295ab8af0e30e1a1c2b3affed798c818376 100644
(file)
--- 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_message
s
+ // Get core.registered_on_
player_receive_field
s
lua_getglobal(L, "core");
lua_getfield(L, -1, "registered_on_player_receive_fields");
// Call callbacks