Fix minetest v5.4-dev bug

This commit is contained in:
Joachim Stolberg 2020-10-25 22:00:26 +01:00
parent 33fd191c2f
commit 7d11fb9481

View File

@ -87,7 +87,7 @@ end
local hud_ids_by_player_name = {}
local function get_hud_id(player)
return hud_ids_by_player_name[player:get_player_name()]
return hud_ids_by_player_name[player:get_player_name()] or 0
end
local function set_hud_id(player, hud_id)