diff --git a/multi_map_core/hud.lua b/multi_map_core/hud.lua index d96b346..032187d 100644 --- a/multi_map_core/hud.lua +++ b/multi_map_core/hud.lua @@ -21,8 +21,8 @@ minetest.register_on_joinplayer(function(player) end) minetest.register_on_leaveplayer(function(player) - if multi_map.hud.enabled and player_huds[player:get_player_name()] then - player_huds[player:get_player_name()] = nil + if multi_map.hud.enabled and saved_huds[player:get_player_name()] then + saved_huds[player:get_player_name()] = nil end end)