mirror of
https://github.com/louisroyer/minetest-toolranks-extras.git
synced 2024-09-29 00:01:02 +02:00
Add detection of farming mod
This commit is contained in:
parent
b1b0b972db
commit
87d3108a67
3
init.lua
3
init.lua
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user