mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-22 06:40:22 +01:00
switch off delay setting
This commit is contained in:
parent
7466fd150a
commit
0edc72e35d
@ -24,6 +24,7 @@ Recommended mods that build on the `technic mod`:
|
|||||||
|
|
||||||
* **technic.quarry.quota** per-player and second quarry dig limit (default: 10)
|
* **technic.quarry.quota** per-player and second quarry dig limit (default: 10)
|
||||||
* **technic.switch_max_range** max cable length (default: 256)
|
* **technic.switch_max_range** max cable length (default: 256)
|
||||||
|
* **technic.switch.off_delay_seconds** switching station off delay (default: 300 seconds)
|
||||||
|
|
||||||
# Open issues
|
# Open issues
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ minetest.register_abm({
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
local off_delay_seconds = 300
|
local off_delay_seconds = tonumber(minetest.settings:get("technic.switch.off_delay_seconds") or "300")
|
||||||
|
|
||||||
local timer = 0
|
local timer = 0
|
||||||
minetest.register_globalstep(function(dtime)
|
minetest.register_globalstep(function(dtime)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user