diff options
-rw-r--r-- | tubes.lua | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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 |