From 29429f636eea272aaddc13be54b9fd41f1b0c8e9 Mon Sep 17 00:00:00 2001 From: Zefram Date: Thu, 1 May 2014 21:21:40 +0100 Subject: [PATCH] Only make gloop dusts if gloopores is present --- technic/machines/register/grinder_recipes.lua | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/technic/machines/register/grinder_recipes.lua b/technic/machines/register/grinder_recipes.lua index 13fa8f1..4ae24f8 100644 --- a/technic/machines/register/grinder_recipes.lua +++ b/technic/machines/register/grinder_recipes.lua @@ -52,11 +52,6 @@ local recipes = { {"default:gravel", "default:dirt"}, {"default:iron_lump", "technic:wrought_iron_dust 2"}, {"default:stone", "default:sand"}, - {"gloopores:alatro_lump", "technic:alatro_dust 2"}, - {"gloopores:kalite_lump", "technic:kalite_dust 2"}, - {"gloopores:arol_lump", "technic:arol_dust 2"}, - {"gloopores:talinite_lump", "technic:talinite_dust 2"}, - {"gloopores:akalin_lump", "technic:akalin_dust 2"}, {"moreores:mithril_ingot", "technic:mithril_dust 1"}, {"moreores:mithril_lump", "technic:mithril_dust 2"}, {"moreores:silver_ingot", "technic:silver_dust 1"}, @@ -74,6 +69,14 @@ local recipes = { {"technic:brass_ingot", "technic:brass_dust 1"}, } +if minetest.get_modpath("gloopores") then + table.insert(recipes, {"gloopores:alatro_lump", "technic:alatro_dust 2"}) + table.insert(recipes, {"gloopores:kalite_lump", "technic:kalite_dust 2"}) + table.insert(recipes, {"gloopores:arol_lump", "technic:arol_dust 2"}) + table.insert(recipes, {"gloopores:talinite_lump", "technic:talinite_dust 2"}) + table.insert(recipes, {"gloopores:akalin_lump", "technic:akalin_dust 2"}) +end + if minetest.get_modpath("homedecor") then table.insert(recipes, {"home_decor:brass_ingot", "technic:brass_dust 1"}) end @@ -100,9 +103,6 @@ local function register_dust(name, ingot) end -- Sorted alphibeticaly -register_dust("Akalin", "glooptest:akalin_ingot") -register_dust("Alatro", "glooptest:alatro_ingot") -register_dust("Arol", "glooptest:arol_ingot") register_dust("Brass", "technic:brass_ingot") register_dust("Bronze", "default:bronze_ingot") register_dust("Carbon Steel", "technic:carbon_steel_ingot") @@ -114,10 +114,15 @@ register_dust("Gold", "default:gold_ingot") register_dust("Mithril", "moreores:mithril_ingot") register_dust("Silver", "moreores:silver_ingot") register_dust("Stainless Steel", "technic:stainless_steel_ingot") -register_dust("Talinite", "glooptest:talinite_ingot") register_dust("Tin", "moreores:tin_ingot") register_dust("Wrought Iron", "technic:wrought_iron_ingot") register_dust("Zinc", "technic:zinc_ingot") +if minetest.get_modpath("gloopores") then + register_dust("Akalin", "glooptest:akalin_ingot") + register_dust("Alatro", "glooptest:alatro_ingot") + register_dust("Arol", "glooptest:arol_ingot") + register_dust("Talinite", "glooptest:talinite_ingot") +end minetest.register_craft({ type = "fuel", -- 2.30.2