forked from minetest-mods/technic
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", iclip_def)
|
||||||
minetest.register_node(":technic:insulator_clip_fencepost", iclipfence_def)
|
minetest.register_node(":technic:insulator_clip_fencepost", iclipfence_def)
|
||||||
minetest.register_node(":technic:steel_strut_with_insulator_clip", sclip_def)
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:insulator_clip",
|
output = "technic:insulator_clip",
|
||||||
@ -215,6 +214,9 @@ minetest.register_craft({
|
|||||||
|
|
||||||
local steelmod = minetest.get_modpath("steel")
|
local steelmod = minetest.get_modpath("steel")
|
||||||
|
|
||||||
|
if streetsmod or steelmod then
|
||||||
|
minetest.register_node(":technic:steel_strut_with_insulator_clip", sclip_def)
|
||||||
|
|
||||||
if steelmod then
|
if steelmod then
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:steel_strut_with_insulator_clip",
|
output = "technic:steel_strut_with_insulator_clip",
|
||||||
@ -232,9 +234,7 @@ if steelmod then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
end
|
elseif streetsmod then
|
||||||
|
|
||||||
if streetsmod then
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "technic:steel_strut_with_insulator_clip",
|
output = "technic:steel_strut_with_insulator_clip",
|
||||||
recipe = {
|
recipe = {
|
||||||
@ -243,6 +243,7 @@ if streetsmod then
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
if minetest.get_modpath("unifieddyes") then
|
if minetest.get_modpath("unifieddyes") then
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user