mirror of
https://gitlab.com/rubenwardy/awards.git
synced 2024-11-22 15:23:44 +01:00
Add awards.add_defaults setting to control adding default awards.
Useful for games not based on MTG but using some of its mods.
This commit is contained in:
parent
da3d9b3980
commit
8a34ea8055
6
init.lua
6
init.lua
@ -16,7 +16,11 @@ dofile(minetest.get_modpath("awards").."/src/api_triggers.lua")
|
|||||||
dofile(minetest.get_modpath("awards").."/src/chat_commands.lua")
|
dofile(minetest.get_modpath("awards").."/src/chat_commands.lua")
|
||||||
dofile(minetest.get_modpath("awards").."/src/gui.lua")
|
dofile(minetest.get_modpath("awards").."/src/gui.lua")
|
||||||
dofile(minetest.get_modpath("awards").."/src/triggers.lua")
|
dofile(minetest.get_modpath("awards").."/src/triggers.lua")
|
||||||
dofile(minetest.get_modpath("awards").."/src/awards.lua")
|
|
||||||
|
-- Optionally add default awards.
|
||||||
|
if minetest.settings:get_bool("awards.add_defaults", true) then
|
||||||
|
dofile(minetest.get_modpath("awards").."/src/awards.lua")
|
||||||
|
end
|
||||||
|
|
||||||
awards.load()
|
awards.load()
|
||||||
minetest.register_on_shutdown(awards.save)
|
minetest.register_on_shutdown(awards.save)
|
||||||
|
2
settingtypes.txt
Normal file
2
settingtypes.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Add default achievements from the awards mod
|
||||||
|
awards.add_defaults (Add Default Achievements) bool true
|
Loading…
Reference in New Issue
Block a user