From: RealBadAngel Date: Sun, 19 Aug 2012 07:48:34 +0000 (+0300) Subject: Update init.lua X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=23515f9d3e37d763f3fd73acc523ea3d9c957f40;p=zefram%2Fminetest%2Fpipeworks.git Update init.lua --- diff --git a/init.lua b/init.lua index 2c62afa..db18d8d 100644 --- a/init.lua +++ b/init.lua @@ -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")