Disable sfinv if installed

master
rubenwardy 2016-08-05 21:57:23 +01:00 committed by Juraj Vajda
parent 0b8c47fd20
commit 5bc9c1eed8
2 changed files with 7 additions and 1 deletions

View File

@ -1,4 +1,5 @@
creative?
sfinv?
intllib?
datastorage?
farming?

View File

@ -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