Add settingtypes to allow disabling of some tools

This commit is contained in:
Louis 2020-02-12 12:54:03 +01:00
parent d167f8d2cf
commit b1b0b972db
2 changed files with 4 additions and 1 deletions

@ -1,3 +1,5 @@
local MP = minetest.get_modpath("toolranks_extras") local MP = minetest.get_modpath("toolranks_extras")
if minetest.settings:get_bool("toolranks_extra.farming", true) then
dofile(MP.."/hoe.lua") dofile(MP.."/hoe.lua")
end

1
settingtypes.txt Normal file

@ -0,0 +1 @@
toolranks_extra.farming (Enable toolranks on farming tools) bool true