Check for mod loaded, not individual items (#1)

for own steel strut vs streets support
This commit is contained in:
Vanessa Dannenberg 2018-08-28 14:21:07 -04:00 committed by SmallJoker
parent 04e74d5ec8
commit 2b2e760c0d

View File

@ -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 different 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 = {