From 2b5aeda9d1ff15a22f2719adebc26fb741514bf4 Mon Sep 17 00:00:00 2001 From: Zefram Date: Sun, 6 Jul 2014 23:14:51 +0100 Subject: 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. --- node_breaker.lua | 2 ++ 1 file changed, 2 insertions(+) (limited to 'node_breaker.lua') 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) -- cgit v1.2.3