From 017326dbed678b5dc3ca428c22df0f7f22ad9816 Mon Sep 17 00:00:00 2001 From: Eugen Wesseloh Date: Mon, 14 May 2018 06:00:29 +0200 Subject: [PATCH] replace print with verbose logging (#409) * remove debug log --- homedecor/climate-control.lua | 1 - homedecor/furniture.lua | 2 -- homedecor/init.lua | 4 +++- lrfurn/armchairs.lua | 1 - 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/homedecor/climate-control.lua b/homedecor/climate-control.lua index b47960d1..412fedf7 100644 --- a/homedecor/climate-control.lua +++ b/homedecor/climate-control.lua @@ -25,7 +25,6 @@ minetest.register_entity("homedecor:mesh_desk_fan", { }) local add_mesh_desk_fan_entity = function(pos) - print("in add_mesh_desk_fan_entity()") local param2 = minetest.get_node(pos).param2 local entity = minetest.add_entity(pos, "homedecor:mesh_desk_fan") if param2 == 0 then diff --git a/homedecor/furniture.lua b/homedecor/furniture.lua index 37cca25f..6c4526c8 100644 --- a/homedecor/furniture.lua +++ b/homedecor/furniture.lua @@ -235,8 +235,6 @@ minetest.register_lbm({ local param2 = paletteidx + new_fdir local newname = "homedecor:armchair" - print(name, dump(a), dump(b), dump(color).."("..dump(paletteidx)..")", dump(param2)) - if node.name == "homedecor:chair" then newname = "homedecor:kitchen_chair_wood" elseif string.find(node.name, "homedecor:chair_") then diff --git a/homedecor/init.lua b/homedecor/init.lua index e38cd817..1b54359b 100644 --- a/homedecor/init.lua +++ b/homedecor/init.lua @@ -119,4 +119,6 @@ dofile(modpath.."/wardrobe.lua") dofile(modpath.."/crafts.lua") -print("[HomeDecor] " .. S("Loaded!")) +if minetest.settings:get_bool("log_mod") then + minetest.log("action", "[HomeDecor] " .. S("Loaded!")) +end diff --git a/lrfurn/armchairs.lua b/lrfurn/armchairs.lua index ad230142..1155050a 100644 --- a/lrfurn/armchairs.lua +++ b/lrfurn/armchairs.lua @@ -64,7 +64,6 @@ lrfurn.old_static_armchairs = {} for _, color in ipairs(lrfurn.colors) do table.insert(lrfurn.old_static_armchairs, "lrfurn:armchair_"..color) - print("lrfurn:armchair_"..color) end minetest.register_lbm({