diff --git a/technic/config.lua b/technic/config.lua index 5108475..a1d3777 100644 --- a/technic/config.lua +++ b/technic/config.lua @@ -8,7 +8,7 @@ local defaults = { enable_flashlight = "false", enable_wind_mill = "false", enable_frames = "false", - enable_corium_griefing = "false", + enable_corium_griefing = "true", enable_radiation_protection = "true", enable_entity_radiation_damage = "true", enable_longterm_radiation_damage = "true", diff --git a/technic/machines/switching_station.lua b/technic/machines/switching_station.lua index d645847..7f5cf31 100644 --- a/technic/machines/switching_station.lua +++ b/technic/machines/switching_station.lua @@ -234,6 +234,7 @@ minetest.register_abm({ chance = 1, action = function(pos, node, active_object_count, active_object_count_wider) if not technic.powerctrl_state then return end + local t0 = minetest.get_us_time() local meta = minetest.get_meta(pos) local meta1 = nil local pos1 = {} @@ -444,6 +445,12 @@ minetest.register_abm({ meta1:set_int(eu_input_str, 0) end + local t1 = minetest.get_us_time() + local diff = t1 - t0 + if diff > 100000 then -- 100ms + minetest.log("warning", "[technic] switching station abm took " .. diff .. " us at " .. minetest.pos_to_string(pos)) + end + end, })