1
0
mirror of https://github.com/MinetestForFun/quests.git synced 2025-07-07 10:50:24 +02:00

A bit of clean up. Moved mod integration lua files to their own folder with a single file designed to check if supported mods are present and load the appropriate local file to setup for it.

This commit is contained in:
DomtronVox
2020-05-03 19:15:16 -04:00
parent 765e34bfe5
commit 4b9565e8b6
6 changed files with 27 additions and 19 deletions

View File

@ -0,0 +1,17 @@
-- support for several inventory mods
if minetest.get_modpath("unified_inventory") then
dofile(minetest.get_modpath("quests") .. "/mod_integrations/unified_inventory.lua")
end
if minetest.get_modpath("inventory_plus") then
dofile(minetest.get_modpath("quests") .. "/mod_integrations/inventory_plus.lua")
end
--mod that displays notifications in the screen's center
if minetest.get_modpath("central_message") then
dofile(minetest.get_modpath("quests") .. "/mod_integrations/central_message.lua")
else -- define blank function so we can still use this in the code later
function quests.show_message(...) end
end