1
0
mirror of https://repo.or.cz/minetest_hudbars.git synced 2025-06-30 15:30:26 +02:00

1.4.1: Fix bug in hb.change_hudbar being a no-op

This commit is contained in:
Wuzzy
2016-07-23 11:47:50 +02:00
parent c26dd7d6a4
commit f06e3c362f
4 changed files with 7 additions and 3 deletions

View File

@ -282,7 +282,7 @@ function hb.init_hudbar(player, identifier, start_value, start_max, start_hidden
end
function hb.change_hudbar(player, identifier, new_value, new_max_value, new_icon, new_bgicon, new_bar, new_label, new_text_color)
if new_value == nil and new_max_value == nil then
if new_value == nil and new_max_value == nil and new_icon == nil and new_bgicon == nil and new_bar == nil and new_label == nil and new_text_color == nil then
return
end