From aac492d9b0ca1958bd2174bf693d189ac68fd09a Mon Sep 17 00:00:00 2001 From: DS Date: Sat, 6 Sep 2025 01:29:02 +0200 Subject: [PATCH] Fix minus character (`-`) being stripped from signs (#3210) --- mods/default/nodes.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/default/nodes.lua b/mods/default/nodes.lua index e9387a58..c18fb0a2 100644 --- a/mods/default/nodes.lua +++ b/mods/default/nodes.lua @@ -2620,7 +2620,7 @@ local function register_sign(material, desc, def) minetest.chat_send_player(player_name, S("Text too long")) return end - text = text:gsub("[%z-\8\11-\31\127]", "") -- strip naughty control characters (keeps \t and \n) + text = text:gsub("[%z\1-\8\11-\31\127]", "") -- strip naughty control characters (keeps \t and \n) default.log_player_action(sender, ("wrote %q to the sign at"):format(text), pos) local meta = minetest.get_meta(pos) meta:set_string("text", text)