From 388a29ef491c8889eebae9f8b4c490e073fa6a84 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Tue, 4 Aug 2015 15:40:46 +0200 Subject: [PATCH] Commented a few unknown recipes and added warning message - Added a warning message from unified_inventory when it detects a recipe involving an unknown item. Can be activated in minetest.conf with "show_unknown_craftrecipes" setting. - Commented a few of our unknown craft recipes --- mods/homedecor_modpack/homedecor/crafts.lua | 8 ++++---- mods/homedecor_modpack/signs_lib/init.lua | 8 ++++---- mods/moretrees/node_defs.lua | 4 ++-- mods/unified_inventory/api.lua | 3 +++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/mods/homedecor_modpack/homedecor/crafts.lua b/mods/homedecor_modpack/homedecor/crafts.lua index 430beab2..a50fcc39 100755 --- a/mods/homedecor_modpack/homedecor/crafts.lua +++ b/mods/homedecor_modpack/homedecor/crafts.lua @@ -950,7 +950,7 @@ minetest.register_craft( { -- cotton versions: -minetest.register_craft( { +--[[minetest.register_craft( { type = "shapeless", output = "homedecor:rug_small 8", recipe = { @@ -959,7 +959,7 @@ minetest.register_craft( { "cotton:blue", "cotton:black" }, -}) +})]] -- Disabled. All recipe's items are unknown. //MFF(Mg|08/04/15) minetest.register_craft( { output = "homedecor:rug_persian 8", @@ -2091,13 +2091,13 @@ minetest.register_craft( { }, }) -minetest.register_craft( { +--[[minetest.register_craft( { output = "homedecor:dishwasher_marble", recipe = { { "technic:slab_marble_1" }, { "homedecor:dishwasher" }, }, -}) +})]] -- Disabled. Item technic:slab_marble_1 is unknown. //MFF(Mg|08/04/15) minetest.register_craft( { output = "homedecor:dishwasher_granite", diff --git a/mods/homedecor_modpack/signs_lib/init.lua b/mods/homedecor_modpack/signs_lib/init.lua index 9f7478cc..91ee39f9 100755 --- a/mods/homedecor_modpack/signs_lib/init.lua +++ b/mods/homedecor_modpack/signs_lib/init.lua @@ -1063,13 +1063,13 @@ minetest.register_craft( { }, }) -minetest.register_craft( { +--[[minetest.register_craft( { output = "signs:sign_wall_blue 2", recipe = { { "dye:blue", "dye:white", "dye:blue" }, { "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" } }, -}) +})]] -- Disabled. steel:sheet_metal is unknown //MFF(Mg|08/04/15) minetest.register_craft( { output = "signs:sign_wall_brown 4", @@ -1079,13 +1079,13 @@ minetest.register_craft( { }, }) -minetest.register_craft( { +--[[minetest.register_craft( { output = "signs:sign_wall_brown 2", recipe = { { "dye:brown", "dye:white", "dye:brown" }, { "steel:sheet_metal", "steel:sheet_metal", "steel:sheet_metal" } }, -}) +})]] -- Disabled. steel:sheet_metal is unknown //MFF(Mg|08/04/15) if minetest.setting_get("log_mods") then minetest.log("action", S("signs loaded")) diff --git a/mods/moretrees/node_defs.lua b/mods/moretrees/node_defs.lua index ffcbc817..8374131d 100755 --- a/mods/moretrees/node_defs.lua +++ b/mods/moretrees/node_defs.lua @@ -405,7 +405,7 @@ minetest.register_alias("farming_plus:rubber_sapling", "moretrees:rubber_tree_sa minetest.register_alias("farming:rubber_sapling", "moretrees:rubber_tree_sapling") minetest.register_alias("default:junglesapling","moretrees:jungletree_sapling") -minetest.register_alias("moretrees:jungletree_trunk_sideways", "moreblocks:horizontal_jungle_tree") +minetest.register_alias("moretrees:jungletree_trunk_sideways", "default:jungletree") -- Item Changed. moreblocks:horizontal_jungle_tree is unknown. //MFF(Mg|08/04/15) minetest.register_alias("moretrees:jungletree_trunk", "default:jungletree") minetest.register_alias("moretrees:jungletree_planks", "default:junglewood") @@ -426,4 +426,4 @@ minetest.register_alias("conifers:leaves_special", "moretrees:fir_leaves_bright" minetest.register_alias("conifers:sapling", "moretrees:fir_sapling") -- Overriding moretrees' palm leaves: -minetest.override_item("moretrees:palm_leaves",{walkable = false}) \ No newline at end of file +minetest.override_item("moretrees:palm_leaves",{walkable = false}) diff --git a/mods/unified_inventory/api.lua b/mods/unified_inventory/api.lua index a95d3133..090aec3d 100755 --- a/mods/unified_inventory/api.lua +++ b/mods/unified_inventory/api.lua @@ -27,6 +27,9 @@ minetest.after(0.01, function() if (not groupchk and not minetest.registered_items[chk]) or (groupchk and not unified_inventory.get_group_item(string.gsub(chk, "group:", "")).item) then unknowns = true + if minetest.setting_getbool("show_unknown_craftrecipes") then + minetest.log("error", "Recipe for item " .. recipe.output .. " contains unknown item " .. chk) + end end end