Set infotext for node breakers
authorZefram <zefram@fysh.org>
Sun, 6 Jul 2014 22:14:51 +0000 (23:14 +0100)
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>
Mon, 14 Jul 2014 18:55:29 +0000 (14:55 -0400)
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

index 3267dc957d677fa2af6f7d7c073d023f2d8c43d5..103f74f2f4ad69f48f44007923b50e24534a4691 100644 (file)
@@ -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)