Depend on mcl_deepslate when mod is used with MCL
This commit is contained in:
parent
315c592d79
commit
e665536427
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue