From 22c842e5633a3da9a72085e2419f64d2b64813b6 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Wed, 22 Jan 2020 17:57:02 +0100 Subject: [PATCH] proper setting names --- README.md | 4 ++-- technic/machines/HV/quarry.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6345cc4..f144a4e 100644 --- a/README.md +++ b/README.md @@ -27,8 +27,8 @@ Recommended mods that build on the `technic mod`: # Settings -* **technic.quarry.enable** enable per-player quarry quota (default: false) -* **technic.quarry.quota** per-player and second quarry dig limit (default: 10) +* **technic.quarry.quota.enable** enable per-player quarry quota (default: false) +* **technic.quarry.quota.limit** per-player and second quarry dig limit (default: 10) * **technic.quarry.maxdepth** max depth of the quarry (default: 100) * **technic.switch_max_range** max cable length (default: 256) * **technic.switch.off_delay_seconds** switching station off delay (default: 300 seconds) diff --git a/technic/machines/HV/quarry.lua b/technic/machines/HV/quarry.lua index 10bbf18..79f3303 100644 --- a/technic/machines/HV/quarry.lua +++ b/technic/machines/HV/quarry.lua @@ -22,7 +22,7 @@ local quarry_eject_dir = vector.new(0, 1, 0) -- per player quota 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 if enable_quota then @@ -36,7 +36,7 @@ if enable_quota then quota_map = {} -- 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() for i, player in pairs(players) do