aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-12-11 17:42:19 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-12-11 17:42:19 +0100
commit02bff5581de33600381a918c2b5a9152306cfcc5 (patch)
treeb6da493a37dc53e067cb158bd798cff107c67057
parent538a52514961ebc57fe86e8a40df7cca24fad16c (diff)
downloaddigcustom-02bff5581de33600381a918c2b5a9152306cfcc5.tar.xz
Add DigCustom Nodes to settingtypes.txt
-rw-r--r--init.lua6
-rw-r--r--settingtypes.txt1
2 files changed, 4 insertions, 3 deletions
diff --git a/init.lua b/init.lua
index e1a8e73..59b80dd 100644
--- a/init.lua
+++ b/init.lua
@@ -1,5 +1,3 @@
-minetest.register_list_command("digcustom", "Configue custom autodig nodes", "digcustom_nodes")
-
minetest.register_globalstep(function()
if minetest.settings:get_bool("digcustom") then
local list = (minetest.settings:get("digcustom_nodes") or ""):split(",")
@@ -9,6 +7,8 @@ minetest.register_globalstep(function()
minetest.dig_node(pos)
end
end
-end)
+end)
+
+minetest.register_list_command("digcustom", "Configue custom autodig nodes", "digcustom_nodes")
minetest.register_cheat("DigCustom", "World", "digcustom")
diff --git a/settingtypes.txt b/settingtypes.txt
index 3d266f2..42fe682 100644
--- a/settingtypes.txt
+++ b/settingtypes.txt
@@ -1 +1,2 @@
digcustom (DigCustom) bool false
+digcustom_nodes (DigCustom Nodes) string