diff options
author | rubenwardy <rubenwardy@gmail.com> | 2016-08-05 21:57:23 +0100 |
---|---|---|
committer | rubenwardy <rubenwardy@gmail.com> | 2016-11-26 21:30:59 +0000 |
commit | 59f52fd481afd0451a64d87efaee1311436620d1 (patch) | |
tree | b74d0ca648136f9cb13cc11654750bd022b2c512 | |
parent | 75a0e6a31880bb3b0412288e7add99257805e8d1 (diff) |
Disable sfinv if installed
-rw-r--r-- | depends.txt | 1 | ||||
-rw-r--r-- | init.lua | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/depends.txt b/depends.txt index 3879b2c..4003add 100644 --- a/depends.txt +++ b/depends.txt @@ -1,4 +1,5 @@ creative? +sfinv? intllib? datastorage? farming? @@ -65,6 +65,12 @@ if creative then end end +-- Disable sfinv inventory +local sfinv = rawget(_G, "sfinv") +if sfinv then + sfinv.enabled = false +end + dofile(modpath.."/group.lua") dofile(modpath.."/api.lua") dofile(modpath.."/internal.lua") @@ -77,4 +83,3 @@ dofile(modpath.."/item_names.lua") if minetest.get_modpath("datastorage") then dofile(modpath.."/waypoints.lua") end - |