From 7d11fb9481c24e3e71699c37921729f7ebc71762 Mon Sep 17 00:00:00 2001 From: Joachim Stolberg Date: Sun, 25 Oct 2020 22:00:26 +0100 Subject: [PATCH] Fix minetest v5.4-dev bug --- stamina/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stamina/init.lua b/stamina/init.lua index 229d874..ca5f97f 100644 --- a/stamina/init.lua +++ b/stamina/init.lua @@ -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)