mirror of
https://github.com/minetest-mods/mesecons.git
synced 2024-09-28 07:10:29 +02:00
set default to steps
This commit is contained in:
parent
55f5eff7de
commit
e37b6b6e9d
|
@ -75,7 +75,7 @@ minetest.register_on_dignode(mesecon.on_dignode)
|
||||||
|
|
||||||
-- Overheating service for fast circuits
|
-- Overheating service for fast circuits
|
||||||
local OVERHEAT_MAX = math.max(1.0, mesecon.setting("overheat_max", 20.0))
|
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"
|
local COOLDOWN_IN_STEPS = COOLDOWN_MODE == "steps"
|
||||||
-- default for steps assumes a dtime of 0.016 seconds
|
-- default for steps assumes a dtime of 0.016 seconds
|
||||||
local COOLDOWN_TIME = math.max(0.0, COOLDOWN_IN_STEPS and
|
local COOLDOWN_TIME = math.max(0.0, COOLDOWN_IN_STEPS and
|
||||||
|
|
|
@ -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.
|
# Use mesecon.cooldown_time and mesecon.cooldown_granularity for further configuration.
|
||||||
# - steps: The cooldown will happen per server steps.
|
# - steps: The cooldown will happen per server steps.
|
||||||
# Use mesecon.cooldown_time_steps and mesecon.cooldown_granularity_steps for further configuration.
|
# 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.
|
# The time in seconds it takes for a device to fully cool down from max heat.
|
||||||
# Only used if mesecon.cooldown_mode is seconds.
|
# Only used if mesecon.cooldown_mode is seconds.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user