summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZefram <zefram@fysh.org>2014-07-06 23:14:51 +0100
committerVanessa Ezekowitz <vanessaezekowitz@gmail.com>2014-07-14 14:55:29 -0400
commit2b5aeda9d1ff15a22f2719adebc26fb741514bf4 (patch)
tree37ebb8efab803a8c18f0ca6f0468c74b19d9ab51
parent6432bf721dd90018d651c3b6f1ae16c1a79d8fe6 (diff)
downloadpipeworks-2b5aeda9d1ff15a22f2719adebc26fb741514bf4.tar
pipeworks-2b5aeda9d1ff15a22f2719adebc26fb741514bf4.tar.gz
pipeworks-2b5aeda9d1ff15a22f2719adebc26fb741514bf4.tar.bz2
pipeworks-2b5aeda9d1ff15a22f2719adebc26fb741514bf4.tar.xz
pipeworks-2b5aeda9d1ff15a22f2719adebc26fb741514bf4.zip
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.
-rw-r--r--node_breaker.lua2
1 files changed, 2 insertions, 0 deletions
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)