mirror of
https://github.com/minetest-mods/technic.git
synced 2024-12-22 05:42:33 +01:00
Add mod check for strut register
This commit is contained in:
parent
3cafe7553a
commit
f5bf0d98b1
@ -193,7 +193,6 @@ end
|
||||
|
||||
minetest.register_node(":technic:insulator_clip", iclip_def)
|
||||
minetest.register_node(":technic:insulator_clip_fencepost", iclipfence_def)
|
||||
minetest.register_node(":technic:steel_strut_with_insulator_clip", sclip_def)
|
||||
|
||||
minetest.register_craft({
|
||||
output = "technic:insulator_clip",
|
||||
@ -215,7 +214,10 @@ minetest.register_craft({
|
||||
|
||||
local steelmod = minetest.get_modpath("steel")
|
||||
|
||||
if steelmod then
|
||||
if streetsmod or steelmod then
|
||||
minetest.register_node(":technic:steel_strut_with_insulator_clip", sclip_def)
|
||||
|
||||
if steelmod then
|
||||
minetest.register_craft({
|
||||
output = "technic:steel_strut_with_insulator_clip",
|
||||
recipe = {
|
||||
@ -232,9 +234,7 @@ if steelmod then
|
||||
}
|
||||
})
|
||||
|
||||
end
|
||||
|
||||
if streetsmod then
|
||||
elseif streetsmod then
|
||||
minetest.register_craft({
|
||||
output = "technic:steel_strut_with_insulator_clip",
|
||||
recipe = {
|
||||
@ -242,6 +242,7 @@ if streetsmod then
|
||||
{"streets:steel_support", "default:steel_ingot" },
|
||||
}
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
if minetest.get_modpath("unifieddyes") then
|
||||
|
Loading…
Reference in New Issue
Block a user