diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-11 17:42:19 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2020-12-11 17:42:19 +0100 |
commit | 02bff5581de33600381a918c2b5a9152306cfcc5 (patch) | |
tree | b6da493a37dc53e067cb158bd798cff107c67057 /init.lua | |
parent | 538a52514961ebc57fe86e8a40df7cca24fad16c (diff) | |
download | digcustom-02bff5581de33600381a918c2b5a9152306cfcc5.tar.xz |
Add DigCustom Nodes to settingtypes.txt
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |