From 00e6d148d5cc1b8f939d779c88727f66f00ce6f9 Mon Sep 17 00:00:00 2001 From: Vanessa Ezekowitz Date: Sat, 22 Jun 2013 15:08:05 -0400 Subject: [PATCH] minor tweak to allow the register_tube() function to use any arbitrary namespace for the tube instead of forcing it to be pipeworks: --- tubes.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tubes.lua b/tubes.lua index 4bd1d77..018da3d 100644 --- a/tubes.lua +++ b/tubes.lua @@ -249,8 +249,11 @@ for zp = 0, 1 do nodedef[key]=value 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 -- 2.30.2