moved mod dependency checks to the right files

master
Alexander Weber 2018-01-14 20:40:56 +01:00
parent 85c85dbd1b
commit c66763f734
3 changed files with 5 additions and 5 deletions

View File

@ -1,3 +1,5 @@
smart_inventory.doc_items_mod = minetest.get_modpath("doc_items")
local doc_addon = {}
local doc_item_entries = {}

View File

@ -2,11 +2,6 @@ smart_inventory = {}
smart_inventory.modpath = minetest.get_modpath(minetest.get_current_modname())
local modpath = smart_inventory.modpath
-- get settings and optional mods support
smart_inventory.skins_mod = minetest.get_modpath("skinsdb")
smart_inventory.armor_mod = minetest.get_modpath("3d_armor")
smart_inventory.doc_items_mod = minetest.get_modpath("doc_items")
-- load libs
smart_inventory.txt = dofile(modpath.."/libs/simple_po_reader.lua")
smart_inventory.smartfs = dofile(modpath.."/libs/smartfs.lua")

View File

@ -1,3 +1,6 @@
smart_inventory.skins_mod = minetest.get_modpath("skinsdb")
smart_inventory.armor_mod = minetest.get_modpath("3d_armor")
if not smart_inventory.skins_mod and not smart_inventory.armor_mod then
return
end