Default: Remove unnecessary infotexts for chests and signs
authorparamat <mat.gregory@virginmedia.com>
Tue, 17 May 2016 00:34:52 +0000 (01:34 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sat, 21 May 2016 02:01:10 +0000 (03:01 +0100)
mods/default/nodes.lua

index d494e1af467f05696228281c4daf62e2763f630d..a97a30fa72f54363dc0871cfc243f62e7c1f696a 100644 (file)
@@ -1447,7 +1447,6 @@ minetest.register_node("default:chest", {
        on_construct = function(pos)
                local meta = minetest.get_meta(pos)
                meta:set_string("formspec", chest_formspec)
-               meta:set_string("infotext", "Chest")
                local inv = meta:get_inventory()
                inv:set_size("main", 8*4)
        end,
@@ -1498,7 +1497,6 @@ minetest.register_node("default:chest_locked", {
        end,
        on_construct = function(pos)
                local meta = minetest.get_meta(pos)
-               meta:set_string("infotext", "Locked Chest")
                meta:set_string("owner", "")
                local inv = meta:get_inventory()
                inv:set_size("main", 8 * 4)
@@ -1636,7 +1634,6 @@ local function register_sign(material, desc, def)
                        --local n = minetest.get_node(pos)
                        local meta = minetest.get_meta(pos)
                        meta:set_string("formspec", "field[text;;${text}]")
-                       meta:set_string("infotext", "\"\"")
                end,
                on_receive_fields = function(pos, formname, fields, sender)
                        --print("Sign at "..minetest.pos_to_string(pos).." got "..dump(fields))