This commit is contained in:
Thomas Rudin 2018-10-15 20:21:30 +02:00
parent e1a8876fc4
commit ebf4ad0fd7
2 changed files with 8 additions and 1 deletions

View File

@ -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",

View File

@ -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,
})