diff options
author | RealBadAngel <mk@realbadangel.pl> | 2012-08-19 10:48:34 +0300 |
---|---|---|
committer | RealBadAngel <mk@realbadangel.pl> | 2012-08-19 10:48:34 +0300 |
commit | 23515f9d3e37d763f3fd73acc523ea3d9c957f40 (patch) | |
tree | 3dc83e457d194ad737d1bdaae2f4d836ad4d7edc | |
parent | c51b86831adf03338b5c79239bed71e4adaa0ba1 (diff) | |
download | pipeworks-23515f9d3e37d763f3fd73acc523ea3d9c957f40.tar pipeworks-23515f9d3e37d763f3fd73acc523ea3d9c957f40.tar.gz pipeworks-23515f9d3e37d763f3fd73acc523ea3d9c957f40.tar.bz2 pipeworks-23515f9d3e37d763f3fd73acc523ea3d9c957f40.tar.xz pipeworks-23515f9d3e37d763f3fd73acc523ea3d9c957f40.zip |
Update init.lua
-rw-r--r-- | init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -264,6 +264,11 @@ for zp = 0, 1 do walkable = true, stack_max = 99, drop = "pipeworks:pipe_110000_empty", + pipelike=1, + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_int("pipelike",1) + end, after_place_node = function(pos) pipe_autoroute({ x=pos.x-1, y=pos.y , z=pos.z }, "_empty") pipe_autoroute({ x=pos.x+1, y=pos.y , z=pos.z }, "_empty") @@ -301,6 +306,11 @@ for zp = 0, 1 do walkable = true, stack_max = 99, drop = "pipeworks:pipe_110000_loaded", + pipelike=1, + on_construct = function(pos) + local meta = minetest.env:get_meta(pos) + meta:set_int("pipelike",1) + end, after_place_node = function(pos) pipe_autoroute({ x=pos.x-1, y=pos.y , z=pos.z }, "_loaded") pipe_autoroute({ x=pos.x+1, y=pos.y , z=pos.z }, "_loaded") |