From 44495ea719b98aca341b9082521d0d4ee51405c8 Mon Sep 17 00:00:00 2001 From: DS Date: Fri, 9 Jun 2017 15:48:04 +0200 Subject: CSM: Fix documentation error for register_on_*_chat_messages (#5917) --- clientmods/preview/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'clientmods') diff --git a/clientmods/preview/init.lua b/clientmods/preview/init.lua index 073ea11db..809e4f017 100644 --- a/clientmods/preview/init.lua +++ b/clientmods/preview/init.lua @@ -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, }) - -- cgit v1.2.3