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,9 @@
minetest.register_on_joinplayer(function(player)
inventory_plus.register_button(player, "quests")
end)
minetest.register_on_player_receive_fields(function(player, formname, fields)
if (fields.quests) then
quests.show_formspec(player:get_player_name())
end
end)