diff options
Diffstat (limited to 'item_transport.lua')
-rw-r--r-- | item_transport.lua | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/item_transport.lua b/item_transport.lua index 305a459..3a9943b 100644 --- a/item_transport.lua +++ b/item_transport.lua @@ -18,9 +18,9 @@ minetest.register_node("pipeworks:filter", { on_construct = function(pos) local meta = minetest.env:get_meta(pos) meta:set_string("formspec", - "invsize[9,9;]".. - "list[current_name;main;0,2;8,2;]".. - "list[current_player;main;0,5;8,4;]") + "invsize[8,6.5;]".. + "list[current_name;main;0,0;8,2;]".. + "list[current_player;main;0,2.5;8,4;]") meta:set_string("infotext", "Filter") local inv = meta:get_inventory() inv:set_size("main", 8*4) @@ -30,6 +30,9 @@ minetest.register_node("pipeworks:filter", { local inv = meta:get_inventory() return inv:is_empty("main") end, + after_place_node = function(pos) + tube_scanforobjects(pos) + end, mesecons={effector={action_on=function(pos,node) minetest.registered_nodes[node.name].on_punch(pos,node,nil) end}}, @@ -110,9 +113,9 @@ minetest.register_node("pipeworks:mese_filter", { on_construct = function(pos) local meta = minetest.env:get_meta(pos) meta:set_string("formspec", - "invsize[9,9;]".. - "list[current_name;main;0,2;8,2;]".. - "list[current_player;main;0,5;8,4;]") + "invsize[8,6.5;]".. + "list[current_name;main;0,0;8,2;]".. + "list[current_player;main;0,2.5;8,4;]") meta:set_string("infotext", "Mese filter") local inv = meta:get_inventory() inv:set_size("main", 8*4) @@ -470,4 +473,4 @@ function go_next(pos,velocity,stack) velocity.z=chests[n].vect.z*speed end return 1 -end
\ No newline at end of file +end |