Correctly handle setting defaults.
This commit is contained in:
parent
99c9c18ed8
commit
c8ad6d4fec
1 changed files with 13 additions and 0 deletions
13
init.lua
13
init.lua
|
@ -4,9 +4,22 @@ fun_caves.time_factor = 10 -- affects growth abms
|
|||
fun_caves.light_max = 8 -- light intensity for mushroom growth
|
||||
fun_caves.path = minetest.get_modpath(minetest.get_current_modname())
|
||||
fun_caves.world = minetest.get_worldpath()
|
||||
|
||||
fun_caves.elixir_armor = minetest.setting_getbool('fun_caves_use_armor_elixirs')
|
||||
if fun_caves.elixir_armor == nil then
|
||||
fun_caves.elixir_armor = true
|
||||
end
|
||||
|
||||
fun_caves.expire_elixir_on_death = minetest.setting_getbool('fun_caves_expire_elixir_on_death')
|
||||
if fun_caves.expire_elixir_on_death == nil then
|
||||
fun_caves.expire_elixir_on_death = true
|
||||
end
|
||||
|
||||
fun_caves.exploding_fungi = minetest.setting_getbool('fun_caves_exploding_fungi')
|
||||
if fun_caves.exploding_fungi == nil then
|
||||
fun_caves.exploding_fungi = true
|
||||
end
|
||||
|
||||
fun_caves.DEBUG = false -- for maintenance only
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue