diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-24 17:31:53 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-11-24 17:31:53 +0100 |
commit | 3094ed985f165e1abd688e2caaa4e9cf4c41a054 (patch) | |
tree | 22c5c986d4d9b88670044bd90ad55bffac6c3871 | |
parent | 2f419d86060c106a4c3fdce758311d5d2ab8737f (diff) | |
download | digcustom-master.tar.xz |
-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 |