From e3c6aba6c17ff16b9de3a2ad7a7465ee416b4a93 Mon Sep 17 00:00:00 2001 From: mckaygerhard Date: Wed, 19 Jul 2023 01:45:01 -0400 Subject: [PATCH] mod - hudbars - already set max hp at core --- mods/hudbars/default_settings.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mods/hudbars/default_settings.lua b/mods/hudbars/default_settings.lua index d2f11c8..31cd214 100644 --- a/mods/hudbars/default_settings.lua +++ b/mods/hudbars/default_settings.lua @@ -50,3 +50,6 @@ end hb.settings.hp_player_maximun = hb.load_setting("hudbars_hp_player_maximun", "number", 20) hb.settings.br_player_maximun = hb.load_setting("hudbars_br_player_maximun", "number", 10) +if minetest.has_feature("object_use_texture_alpha") then +core.PLAYER_MAX_HP_DEFAULT = hb.settings.hp_player_maximun +end