Check for MCL2 first

This commit is contained in:
texmex 2017-12-08 16:53:20 +01:00 committed by GitHub
parent 35a6532484
commit 528ed328fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -53,16 +53,7 @@ minetest.register_entity("sling:sling_entity", throwing.make_arrow_def{
end
})
if mobs ~= nil and mobs.mod == "redo" then
minetest.register_craft({
output = "sling:sling",
recipe = {
{"farming:cotton", "", "farming:cotton"},
{"farming:cotton", "", "farming:cotton"},
{"farming:cotton", "mobs:leather", "farming:cotton"}
}
})
elseif minetest.get_modpath("mcl_core") ~= nil then
if minetest.get_modpath("mcl_core") ~= nil then
minetest.register_craft({
output = "sling:sling",
recipe = {
@ -71,6 +62,15 @@ elseif minetest.get_modpath("mcl_core") ~= nil then
{"mcl_mobitems:string", "mcl_mobitems:leather", "mcl_mobitems:string"}
}
})
elseif mobs ~= nil and mobs.mod == "redo" then
minetest.register_craft({
output = "sling:sling",
recipe = {
{"farming:cotton", "", "farming:cotton"},
{"farming:cotton", "", "farming:cotton"},
{"farming:cotton", "mobs:leather", "farming:cotton"}
}
})
else
minetest.register_craft({
output = "sling:sling",