minor tweak to allow the register_tube() function to use any arbitrary

namespace for the tube instead of forcing it to be pipeworks:
This commit is contained in:
Vanessa Ezekowitz 2013-06-22 15:08:05 -04:00
parent 9a42a5f18b
commit 00e6d148d5

View File

@ -249,8 +249,11 @@ for zp = 0, 1 do
nodedef[key]=value nodedef[key]=value
end end
end end
minetest.register_node(name.."_"..tname, nodedef) local prefix=":"
if string.find(name, "pipeworks:") then prefix = "" end
minetest.register_node(prefix..name.."_"..tname, nodedef)
end end
end end