summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tubes.lua7
1 files 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