mirror of
https://github.com/mt-mods/pipeworks.git
synced 2024-11-14 03:13:56 +01:00
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:
parent
9a42a5f18b
commit
00e6d148d5
@ -250,7 +250,10 @@ for zp = 0, 1 do
|
|||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user