mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-08-20 13:16:07 +02:00
Fix another crash
This commit is contained in:
parent
9a8a3f0f8c
commit
b19b5f090a
2
init.lua
2
init.lua
@ -315,10 +315,10 @@ function hb.change_hudbar(player, identifier, new_value, new_max_value, new_icon
|
|||||||
end
|
end
|
||||||
|
|
||||||
local name = player:get_player_name()
|
local name = player:get_player_name()
|
||||||
|
local hudtable = hb.get_hudtable(identifier)
|
||||||
if not hudtable.hudstate[name] then
|
if not hudtable.hudstate[name] then
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
local hudtable = hb.get_hudtable(identifier)
|
|
||||||
local value_changed, max_changed = false, false
|
local value_changed, max_changed = false, false
|
||||||
|
|
||||||
if new_value ~= nil then
|
if new_value ~= nil then
|
||||||
|
Loading…
Reference in New Issue
Block a user