Adding default to boolean settings

This commit is contained in:
Jordan Leppert 2021-12-06 09:33:44 +00:00
parent 98f0c6c20f
commit e2486ca7f5

View File

@ -3,13 +3,13 @@ vines = {
recipes = {}
}
local enable_vines = minetest.settings:get_bool("vines_enable_vines")
local enable_rope = minetest.settings:get_bool("vines_enable_rope")
local enable_roots = minetest.settings:get_bool("vines_enable_roots")
local enable_standard = minetest.settings:get_bool("vines_enable_standard")
local enable_side = minetest.settings:get_bool("vines_enable_side")
local enable_jungle = minetest.settings:get_bool("vines_enable_jungle")
local enable_willow = minetest.settings:get_bool("vines_enable_willow")
local enable_vines = minetest.settings:get_bool("vines_enable_vines", true)
local enable_rope = minetest.settings:get_bool("vines_enable_rope", true)
local enable_roots = minetest.settings:get_bool("vines_enable_roots", true)
local enable_standard = minetest.settings:get_bool("vines_enable_standard", true)
local enable_side = minetest.settings:get_bool("vines_enable_side", true)
local enable_jungle = minetest.settings:get_bool("vines_enable_jungle", true)
local enable_willow = minetest.settings:get_bool("vines_enable_willow", true)
local default_rarity = 90
local rarity_roots = tonumber(minetest.settings:get("vines_rarity_roots")) or default_rarity