diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-22 15:08:05 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2013-06-22 15:08:05 -0400 |
commit | 00e6d148d5cc1b8f939d779c88727f66f00ce6f9 (patch) | |
tree | a90688b08af7ca633bf5a15e4329ff17163005b5 | |
parent | 9a42a5f18b5e03340e9ec756eeedcf2dd6aae5b3 (diff) | |
download | pipeworks-00e6d148d5cc1b8f939d779c88727f66f00ce6f9.tar pipeworks-00e6d148d5cc1b8f939d779c88727f66f00ce6f9.tar.gz pipeworks-00e6d148d5cc1b8f939d779c88727f66f00ce6f9.tar.bz2 pipeworks-00e6d148d5cc1b8f939d779c88727f66f00ce6f9.tar.xz pipeworks-00e6d148d5cc1b8f939d779c88727f66f00ce6f9.zip |
minor tweak to allow the register_tube() function to use any arbitrary
namespace for the tube instead of forcing it to be pipeworks:
-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 |