diff options
-rw-r--r-- | init.lua | 2 | ||||
-rw-r--r-- | settingtypes.txt | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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 |