From 4b1cc017a9feb73d8c8bec260b9c4461e6a8711c Mon Sep 17 00:00:00 2001 From: chmodsayshello Date: Fri, 7 Apr 2023 11:58:27 +0200 Subject: [PATCH] fix syntax --- mods/ITEMS/mcl_beds/functions.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mods/ITEMS/mcl_beds/functions.lua b/mods/ITEMS/mcl_beds/functions.lua index 9def86870..be60adec8 100644 --- a/mods/ITEMS/mcl_beds/functions.lua +++ b/mods/ITEMS/mcl_beds/functions.lua @@ -437,6 +437,8 @@ minetest.register_on_player_receive_fields(function(player, formname, fields) if fields.chatsubmit and fields.chatmessage ~= "" then if not minetest.check_player_privs(player,"shout") then minetest.chat_send_player(player:get_player_name(),S("You are missing the 'shout' privilege! It's required in order to talk in chat...")) + return + end minetest.chat_send_all(minetest.format_chat_message(player:get_player_name(), fields.chatmessage)) end