summaryrefslogtreecommitdiff
path: root/steel
diff options
context:
space:
mode:
Diffstat (limited to 'steel')
-rw-r--r--steel/init.lua8
1 files changed, 6 insertions, 2 deletions
diff --git a/steel/init.lua b/steel/init.lua
index fa9dfdd..83a1c1d 100644
--- a/steel/init.lua
+++ b/steel/init.lua
@@ -102,7 +102,10 @@ minetest.register_node("steel:plate_rusted", {
local base_tex = "strut.png"
-if minetest.registered_nodes["streets:steel_support"] then
+local streetsmod = minetest.get_modpath("streets") or minetest.get_modpath ("steelsupport")
+-- cheapie's fork breaks it into several individual mods, with differernt names for the same content.
+
+if streetsmod then
minetest.register_alias("steel:strut","streets:steel_support")
base_tex = "streets_support.png"
else
@@ -272,7 +275,8 @@ minetest.register_craft({
})
-- only register this craft if streets is not loaded
-if not minetest.registered_nodes["streets:steel_support"] then
+
+if not streetsmod then
minetest.register_craft({
output = 'steel:strut 5',
recipe = {