set default to steps

This commit is contained in:
Desour 2021-03-29 20:06:08 +02:00
parent 55f5eff7de
commit e37b6b6e9d
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ minetest.register_on_dignode(mesecon.on_dignode)
-- Overheating service for fast circuits
local OVERHEAT_MAX = math.max(1.0, mesecon.setting("overheat_max", 20.0))
local COOLDOWN_MODE = mesecon.setting("cooldown_mode", "seconds")
local COOLDOWN_MODE = mesecon.setting("cooldown_mode", "steps")
local COOLDOWN_IN_STEPS = COOLDOWN_MODE == "steps"
-- default for steps assumes a dtime of 0.016 seconds
local COOLDOWN_TIME = math.max(0.0, COOLDOWN_IN_STEPS and

View File

@ -13,7 +13,7 @@ mesecon.overheat_max (Device heat limit) float 20.0 1.0
# Use mesecon.cooldown_time and mesecon.cooldown_granularity for further configuration.
# - steps: The cooldown will happen per server steps.
# Use mesecon.cooldown_time_steps and mesecon.cooldown_granularity_steps for further configuration.
mesecon.cooldown_mode (Device cooldown mode) enum seconds seconds,steps
mesecon.cooldown_mode (Device cooldown mode) enum steps seconds,steps
# The time in seconds it takes for a device to fully cool down from max heat.
# Only used if mesecon.cooldown_mode is seconds.