From e37b6b6e9d30db7b84a40aecd862b6b0b70aa0be Mon Sep 17 00:00:00 2001 From: Desour Date: Mon, 29 Mar 2021 20:06:08 +0200 Subject: [PATCH] set default to steps --- mesecons/services.lua | 2 +- settingtypes.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mesecons/services.lua b/mesecons/services.lua index 43aefc6..5f823e0 100644 --- a/mesecons/services.lua +++ b/mesecons/services.lua @@ -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 diff --git a/settingtypes.txt b/settingtypes.txt index 9d6859c..e270320 100644 --- a/settingtypes.txt +++ b/settingtypes.txt @@ -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.