Fix myself being displayed in Damage Meter twice

This commit is contained in:
GreenComfyTea
2022-07-23 17:47:51 +03:00
parent c2f44dce04
commit 293eef9655
2 changed files with 69 additions and 128 deletions

View File

@@ -54,7 +54,7 @@ function damage_meter_UI.get_players(player_info_list)
local _player = player.get_player(player_id);
if _player ~= nil then
if player_id == player.myself.id and cached_config.settings.my_damage_bar_location ~= "Normal" then
if _player == player.myself and cached_config.settings.my_damage_bar_location ~= "Normal" then
goto continue;
end
table.insert(quest_players, _player);
@@ -74,8 +74,6 @@ function damage_meter_UI.draw()
return;
end
local quest_players = {};
if damage_meter_UI.freeze_displayed_players and damage_meter_UI.last_displayed_players ~= {} then
quest_players = damage_meter_UI.last_displayed_players;