From e665536427cec33694b3a85f808fc26d7705a6b3 Mon Sep 17 00:00:00 2001 From: mrkubax10 Date: Sat, 18 Mar 2023 10:27:10 +0100 Subject: [PATCH] Depend on mcl_deepslate when mod is used with MCL --- compatibility.lua | 8 +++++++- mod.conf | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/compatibility.lua b/compatibility.lua index f2cc441..c8520b5 100644 --- a/compatibility.lua +++ b/compatibility.lua @@ -17,7 +17,7 @@ local S=minetest.get_translator("industrialtest") industrialtest.mtgAvailable=minetest.get_modpath("default") -local requiredMclModules={"mcl_core","mcl_copper","mcl_armor"} +local requiredMclModules={"mcl_core","mcl_copper","mcl_armor","mcl_deepslate"} industrialtest.mclAvailable=true for _,mod in ipairs(requiredMclModules) do if not minetest.get_modpath(mod) then @@ -479,11 +479,14 @@ if industrialtest.mclAvailable then industrialtest.gameTexturePrefix="mcl" -- assign element keys for elements that are required later industrialtest.elementKeys.stick="mcl_core:stick" + industrialtest.elementKeys.flint="mcl_core:flint" industrialtest.elementKeys.junglePlanks="mcl_core:junglewood" industrialtest.elementKeys.ironIngot="mcl_core:iron_ingot" industrialtest.elementKeys.copperIngot="mcl_copper:copper_ingot" industrialtest.elementKeys.powerCarrier="mesecons:mesecon" industrialtest.elementKeys.furnace="mcl_furnaces:furnace" + industrialtest.elementKeys.cobble="mcl_core:cobble" + industrialtest.elementKeys.sand="mcl_core:sand" -- register required minerals that are not available in MCL industrialtest.registerMetal("tin","Tin",3,3) @@ -646,9 +649,12 @@ elseif industrialtest.mtgAvailable then industrialtest.elementKeys.ironIngot="default:steel_ingot" industrialtest.elementKeys.copperIngot="default:copper_ingot" industrialtest.elementKeys.stick="default:stick" + industrialtest.elementKeys.flint="default:flint" industrialtest.elementKeys.junglePlanks="default:junglewood" industrialtest.elementKeys.powerCarrier="default:mese_crystal_fragment" industrialtest.elementKeys.furnace="default:furnace" + industrialtest.elementKeys.cobble="default:cobble" + industrialtest.elementKeys.sand="default:sand" else error("No compatible games found!") end diff --git a/mod.conf b/mod.conf index 12c6cf6..d1f4daf 100644 --- a/mod.conf +++ b/mod.conf @@ -1,5 +1,5 @@ name=industrialtest description=Adds various machinery -optional_depends=default,3d_armor,mcl_core,mcl_copper,mcl_armor +optional_depends=default,3d_armor,mcl_core,mcl_copper,mcl_armor,mcl_deepslate author=IndustrialTest Team title=IndustrialTest \ No newline at end of file