mirror of
https://github.com/minetest-mods/gauges.git
synced 2024-12-23 01:10:23 +01:00
Fix minetest.setting_getbool()
deprecation warning
This commit is contained in:
parent
9e91c7e561
commit
c0c410755b
4
init.lua
4
init.lua
@ -55,8 +55,8 @@ local function add_HP_gauge(name)
|
||||
end
|
||||
|
||||
if
|
||||
minetest.setting_getbool("health_bars") ~= false and
|
||||
minetest.setting_getbool("enable_damage")
|
||||
minetest.settings:get_bool("enable_damage") and
|
||||
minetest.settings:get_bool("health_bars") ~= false
|
||||
then
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
minetest.after(1, add_HP_gauge, player:get_player_name())
|
||||
|
Loading…
Reference in New Issue
Block a user