mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
CSM: Fix documentation error for register_on_*_chat_messages (#5917)
This commit is contained in:
parent
312ca0382b
commit
44495ea719
5 changed files with 10 additions and 11 deletions
|
@ -30,13 +30,13 @@ core.register_on_item_use(function(itemstack, pointed_thing)
|
|||
end)
|
||||
|
||||
-- This is an example function to ensure it's working properly, should be removed before merge
|
||||
core.register_on_receiving_chat_messages(function(message)
|
||||
core.register_on_receiving_chat_message(function(message)
|
||||
print("[PREVIEW] Received message " .. message)
|
||||
return false
|
||||
end)
|
||||
|
||||
-- This is an example function to ensure it's working properly, should be removed before merge
|
||||
core.register_on_sending_chat_messages(function(message)
|
||||
core.register_on_sending_chat_message(function(message)
|
||||
print("[PREVIEW] Sending message " .. message)
|
||||
return false
|
||||
end)
|
||||
|
@ -155,4 +155,3 @@ core.register_chatcommand("privs", {
|
|||
return true, core.privs_to_string(minetest.get_privilege_list())
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue