mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-11-20 01:43:45 +01:00
Removing absorption bar on damage disabled servers
The absorption effect won't work on damage disabled servers and the health bar and hunger bar is also hidden leaving the absorption bar alone which makes it look not good. So not initializing it on those servers might be a good idea.
This commit is contained in:
parent
77bcf6cff3
commit
a6136ad158
@ -1260,7 +1260,11 @@ local function potions_init_icons(player)
|
|||||||
})
|
})
|
||||||
table.insert(icon_ids[name], id)
|
table.insert(icon_ids[name], id)
|
||||||
end
|
end
|
||||||
hb.init_hudbar(player, "absorption")
|
|
||||||
|
-- Absorption bar in damage disabled server is unneccessary
|
||||||
|
if minetest.settings:get_bool("enable_damage") == true then
|
||||||
|
hb.init_hudbar(player, "absorption")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
local function potions_set_icons(player)
|
local function potions_set_icons(player)
|
||||||
|
Loading…
Reference in New Issue
Block a user