forked from mtcontrib/minetest_hudbars
Fix stupid bug (setting_getbool instead of setting_get)
This commit is contained in:
parent
8d2321d647
commit
2a35745ec9
4
init.lua
4
init.lua
@ -33,7 +33,7 @@ hb.settings.tick = 0.1
|
||||
stack_down: The HUD bars are stacked vertically. going downwards.
|
||||
]]
|
||||
hb.settings.alignment_pattern = "zigzag"
|
||||
local alignment_pattern = minetest.setting_getbool("hudbars_alignment_pattern")
|
||||
local alignment_pattern = minetest.setting_get("hudbars_alignment_pattern")
|
||||
if alignment_pattern ~= nil then
|
||||
hb.settings.alignment_pattern = alignment_pattern
|
||||
if alignment_pattern ~= "zigzag" and alignment_pattern ~= "stack_up" and alignment_pattern ~= "stack_down" then
|
||||
@ -43,7 +43,7 @@ if alignment_pattern ~= nil then
|
||||
end
|
||||
|
||||
hb.settings.bar_type = "progress_bar"
|
||||
local bar_type = minetest.setting_getbool("hudbars_bar_type")
|
||||
local bar_type = minetest.setting_get("hudbars_bar_type")
|
||||
if bar_type ~= nil then
|
||||
hb.settings.bar_type = bar_type
|
||||
if bar_type ~= "progress_bar" and bar_type ~= "statbar_classic" and bar_type ~= "statbar_modern" then
|
||||
|
Loading…
Reference in New Issue
Block a user