mirror of
https://github.com/mt-mods/basic_materials.git
synced 2025-07-03 08:30:26 +02:00
refactor if statment
This commit is contained in:
@ -75,11 +75,11 @@ elseif minetest.get_modpath("hades_core") then
|
|||||||
--set this to steel unless hadesextraores is present
|
--set this to steel unless hadesextraores is present
|
||||||
silver_ingot = "hades_core:steel_ingot",
|
silver_ingot = "hades_core:steel_ingot",
|
||||||
}
|
}
|
||||||
end
|
|
||||||
|
|
||||||
if minetest.get_modpath("hades_core") and minetest.get_modpath("hades_extraores") then
|
if minetest.get_modpath("hades_extraores") then
|
||||||
materials["silver_ingot"] = "hades_extraores:silver_ingot"
|
materials["silver_ingot"] = "hades_extraores:silver_ingot"
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
--craft recipes
|
--craft recipes
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
|
Reference in New Issue
Block a user