From: Zefram Date: Sun, 6 Jul 2014 22:14:51 +0000 (+0100) Subject: Set infotext for node breakers X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=2b5aeda9d1ff15a22f2719adebc26fb741514bf4;p=zefram%2Fminetest%2Fpipeworks.git Set infotext for node breakers As node breakers now have a form, they should also have infotext to draw attention to it, as do most form-containing nodes. --- diff --git a/node_breaker.lua b/node_breaker.lua index 3267dc9..103f74f 100644 --- a/node_breaker.lua +++ b/node_breaker.lua @@ -254,6 +254,7 @@ minetest.register_node("pipeworks:nodebreaker_off", { "label[0,0;Node breaker]".. "list[current_name;pick;3.5,0;1,1;]".. "list[current_player;main;0,2;8,4;]") + meta:set_string("infotext", "Node Breaker") end, after_place_node = function (pos, placer) pipeworks.scan_for_tube_objects(pos, placer) @@ -354,6 +355,7 @@ minetest.register_node("pipeworks:nodebreaker_on", { "list[current_name;pick;3.5,0;1,1;]".. "list[current_player;main;0,2;8,4;]") --inv:set_stack("pick", 1, ItemStack("default:pick_mese")) + meta:set_string("infotext", "Node Breaker") end, after_place_node = function (pos, placer) pipeworks.scan_for_tube_objects(pos, placer)