This commit is contained in:
rnd1 2016-05-05 22:59:59 +02:00
parent 7e1f09966b
commit 6876bbc95e

View File

@ -1487,7 +1487,7 @@ minetest.register_node("basic_machines:light_on", {
action_on = function (pos, node,ttl)
local meta = minetest.get_meta(pos);
local count = tonumber(meta:get_string("infotext")) or 0;
meta:set_infotext("infotext",count+1); -- increase activate count
meta:set_string("infotext",count+1); -- increase activate count
end
}
},