aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--init.lua2
-rw-r--r--settingtypes.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index f305ad8..23ce529 100644
--- a/init.lua
+++ b/init.lua
@@ -3,7 +3,7 @@ async(function()
if minetest.settings:get_bool("digcustom") and minetest.localplayer then
local list = (minetest.settings:get("digcustom_nodes") or ""):split(",")
local node_pos = minetest.find_node_near(minetest.localplayer:get_pos(), 5, list, true)
- local max_time = tonumber(minetest.settings:get("digcustom_max_time")) or -1
+ local max_time = tonumber(minetest.settings:get("digcustom_max_time"))
if node_pos then
await(diglib.dig_node(node_pos, max_time))
diff --git a/settingtypes.txt b/settingtypes.txt
index d143c07..0e1e39f 100644
--- a/settingtypes.txt
+++ b/settingtypes.txt
@@ -5,5 +5,5 @@ digcustom (DigCustom) bool false
digcustom_nodes (DigCustom Nodes) string
# Maximum time to spend on digging a node.
-# -1 means no limit
+# Negative values mean no limit.
digcustom_max_time (DigCustom Max Time) int -1