mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
Fix settings management
This commit is contained in:
parent
2f80c6baf2
commit
94a6cd0571
1 changed files with 7 additions and 2 deletions
|
@ -11,9 +11,14 @@ local usages_cache = {}
|
|||
local fuel_cache = {}
|
||||
|
||||
local progressive_mode = M.settings:get_bool("craftguide_progressive_mode")
|
||||
local sfinv_only = M.settings:get_bool("craftguide_sfinv_tab") and rawget(_G, "sfinv")
|
||||
|
||||
if not sfinv_only then sfinv_only = true end
|
||||
local sfinv_only = M.settings:get_bool("craftguide_sfinv_tab")
|
||||
|
||||
if sfinv_only == nil then
|
||||
sfinv_only = true
|
||||
else
|
||||
sfinv_only = sfinv_only and sfinv and sfinv.enabled
|
||||
end
|
||||
|
||||
local after = M.after
|
||||
local colorize = M.colorize
|
||||
|
|
Loading…
Add table
Reference in a new issue