Add detection of farming mod

This commit is contained in:
Louis 2020-02-12 12:55:47 +01:00
parent b1b0b972db
commit 87d3108a67

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