]> git.lizzy.rs Git - digcustom.git/blobdiff - init.lua
max_time: Remove superflowous default, improve documentation
[digcustom.git] / init.lua
index f305ad8004a8f1b6a26c8547076ca02f565fba43..23ce52933ee6dd649202cb065e4ef30f6e72083d 100644 (file)
--- 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))