only register the alias for wrongly-named curtain nodes

if they were in fact wrongly-named.
This commit is contained in:
Vanessa Ezekowitz 2013-11-08 05:11:58 -05:00
parent e3de39bd05
commit ccdbc80295

View File

@ -217,8 +217,9 @@ for c in ipairs(curtaincolors) do
--wall_side = = <default>
},
})
minetest.register_alias("homedecor:curtain_"..color_d, "homedecor:curtain_"..color)
if color_d ~= color then
minetest.register_alias("homedecor:curtain_"..color_d, "homedecor:curtain_"..color)
end
end
minetest.register_node('homedecor:air_conditioner', {