mirror of
https://repo.or.cz/minetest_playereffects.git
synced 2025-01-07 09:50:17 +01:00
Cleanup settings, disable examples by default
This commit is contained in:
parent
f51c9fb26b
commit
82291549c4
18
init.lua
18
init.lua
@ -31,6 +31,20 @@ playereffects.last_effect_id = 0
|
||||
--[=[ Include settings ]=]
|
||||
dofile(minetest.get_modpath("playereffects").."/settings.lua")
|
||||
|
||||
-- defaults
|
||||
if(playereffects.use_hud == nil) then
|
||||
playereffects.use_hud = true
|
||||
end
|
||||
if(playereffects.use_autosave == nil) then
|
||||
playereffects.use_autosave = true
|
||||
end
|
||||
if(playereffects.autosave_time == nil) then
|
||||
playereffects.autosave_time = 10
|
||||
end
|
||||
if(playereffects.use_examples == nil) then
|
||||
playereffects.use_examples = false
|
||||
end
|
||||
|
||||
--[=[ Load inactive_effects and last_effect_id from playereffects.mt, if this file exists ]=]
|
||||
do
|
||||
local filepath = minetest.get_worldpath().."/playereffects.mt"
|
||||
@ -443,4 +457,6 @@ end
|
||||
|
||||
|
||||
-- LOAD EXAMPLES
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/examples.lua")
|
||||
if(playereffects.use_examples == true) then
|
||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/examples.lua")
|
||||
end
|
||||
|
@ -10,3 +10,6 @@ playereffects.use_autosave = true
|
||||
|
||||
-- The time interval between autosaves, in seconds (only used when use_autosave is true)
|
||||
playereffects.autosave_time = 10
|
||||
|
||||
-- If true, this loads some examples from example.lua.
|
||||
playereffects.use_examples = false
|
||||
|
Loading…
Reference in New Issue
Block a user