From f384d73f700dbaada3430570c6804cc07bb4be4c Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 10 Sep 2015 09:39:58 +0200 Subject: [PATCH] quiet down sign_lib (_G warning and debug statements) --- signs_lib/init.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/signs_lib/init.lua b/signs_lib/init.lua index 74a4590a..83f8f053 100644 --- a/signs_lib/init.lua +++ b/signs_lib/init.lua @@ -437,7 +437,7 @@ signs_lib.update_sign = function(pos, fields, owner) local meta = minetest.get_meta(pos) local stored_text = meta:get_string("text") or "" - current_keyword = mki_interact_keyword or current_keyword + current_keyword = rawget(_G, "mki_interact_keyword") or current_keyword if fields then -- ...we're editing the sign. if fields.text and string.find(dump(fields.text), "@KEYWORD") then @@ -568,7 +568,6 @@ function signs_lib.determine_sign_type(itemstack, placer, pointed_thing, locked) local fdir = minetest.dir_to_facedir(dir) local pt_name = minetest.get_node(under).name - print(dump(pt_name)) local signname = itemstack:get_name() if fences_with_sign[pt_name] and signname == "default:sign_wall" then @@ -915,7 +914,7 @@ function signs_lib.register_fence_with_sign(fencename, fencewithsignname) minetest.register_node(":"..fencename, def) minetest.register_node(":"..fencewithsignname, def_sign) table.insert(signs_lib.sign_node_list, fencewithsignname) - print(S("Registered %s and %s"):format(fencename, fencewithsignname)) + minetest.log("debug", S("Registered %s and %s"):format(fencename, fencewithsignname)) end build_char_db()