From 3dc94b67cc2c5842a814e6b5b53dd3ca5efa5aa5 Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 20 Aug 2015 14:52:01 +0200 Subject: [PATCH] label abms for profiling purposes see https://github.com/t4im/profiler/#labeling --- homedecor/electronics.lua | 1 + homedecor/handlers/furnaces.lua | 1 + homedecor/kitchen_appliances.lua | 1 + 3 files changed, 3 insertions(+) diff --git a/homedecor/electronics.lua b/homedecor/electronics.lua index 18bf62fd..9a59a962 100644 --- a/homedecor/electronics.lua +++ b/homedecor/electronics.lua @@ -144,6 +144,7 @@ homedecor.register("telephone", { minetest.register_abm({ nodenames = "homedecor:telephone", + label = "sfx", interval = 30, chance = 15, action = function(pos, node) diff --git a/homedecor/handlers/furnaces.lua b/homedecor/handlers/furnaces.lua index b39327a4..aaa2fef3 100644 --- a/homedecor/handlers/furnaces.lua +++ b/homedecor/handlers/furnaces.lua @@ -176,6 +176,7 @@ function homedecor.register_furnace(name, furnacedef) minetest.register_abm({ nodenames = {name, name_active, name.."_locked", name_active.."_locked"}, + label = "furnaces", interval = 1.0, chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) diff --git a/homedecor/kitchen_appliances.lua b/homedecor/kitchen_appliances.lua index 6ef016cd..68570e09 100644 --- a/homedecor/kitchen_appliances.lua +++ b/homedecor/kitchen_appliances.lua @@ -127,6 +127,7 @@ local fdir_to_steampos = { minetest.register_abm({ nodenames = "homedecor:coffee_maker", + label = "sfx", interval = 2, chance = 1, action = function(pos, node)