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:
17
mod_integrations/mod_integrations.lua
Normal file
17
mod_integrations/mod_integrations.lua
Normal 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
|
Reference in New Issue
Block a user