mirror of
https://github.com/minetest-mods/technic.git
synced 2025-02-23 07:10:19 +01:00
proper setting names
This commit is contained in:
parent
4abf631de5
commit
6b61243240
@ -27,8 +27,8 @@ Recommended mods that build on the `technic mod`:
|
|||||||
|
|
||||||
# Settings
|
# Settings
|
||||||
|
|
||||||
* **technic.quarry.enable** enable per-player quarry quota (default: false)
|
* **technic.quarry.quota.enable** enable per-player quarry quota (default: false)
|
||||||
* **technic.quarry.quota** per-player and second quarry dig limit (default: 10)
|
* **technic.quarry.quota.limit** per-player and second quarry dig limit (default: 10)
|
||||||
* **technic.quarry.maxdepth** max depth of the quarry (default: 100)
|
* **technic.quarry.maxdepth** max depth of the quarry (default: 100)
|
||||||
* **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)
|
* **technic.switch.off_delay_seconds** switching station off delay (default: 300 seconds)
|
||||||
|
@ -22,7 +22,7 @@ local quarry_eject_dir = vector.new(0, 1, 0)
|
|||||||
-- per player quota
|
-- per player quota
|
||||||
local quota_map = {}
|
local quota_map = {}
|
||||||
|
|
||||||
local enable_quota = minetest.settings:get_bool("technic.quarry.enable", false)
|
local enable_quota = minetest.settings:get_bool("technic.quarry.quota.enable", false)
|
||||||
|
|
||||||
-- quota reset timer
|
-- quota reset timer
|
||||||
if enable_quota then
|
if enable_quota then
|
||||||
@ -36,7 +36,7 @@ if enable_quota then
|
|||||||
quota_map = {}
|
quota_map = {}
|
||||||
|
|
||||||
-- this many blocks per second
|
-- this many blocks per second
|
||||||
local init_quota = tonumber(minetest.settings:get("technic.quarry.quota") or "10")
|
local init_quota = tonumber(minetest.settings:get("technic.quarry.quota.limit") or "10")
|
||||||
|
|
||||||
local players = minetest.get_connected_players()
|
local players = minetest.get_connected_players()
|
||||||
for i, player in pairs(players) do
|
for i, player in pairs(players) do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user