mirror of
https://github.com/GreenComfyTea/MHR-Overlay.git
synced 2026-01-25 04:48:22 -08:00
Fix a bug when my buddy was incorrect when disconnecting from online quest
This commit is contained in:
@@ -187,12 +187,13 @@ function non_players.update_my_otomos()
|
|||||||
if name ~= nil and name ~= "" then
|
if name ~= nil and name ~= "" then
|
||||||
local level = otomo_create_data_level_field:get_data(first_otomo) or 0;
|
local level = otomo_create_data_level_field:get_data(first_otomo) or 0;
|
||||||
|
|
||||||
if non_players.otomo_list[0] == nil then
|
local myself_id = players.myself.id;
|
||||||
non_players.otomo_list[0] = non_players.new(0, name, level, players.types.my_otomo);
|
if non_players.otomo_list[myself_id] == nil then
|
||||||
|
non_players.otomo_list[myself_id] = non_players.new(0, name, level, players.types.my_otomo);
|
||||||
end
|
end
|
||||||
|
|
||||||
if cached_config.settings.show_my_otomos_separately then
|
if cached_config.settings.show_my_otomos_separately then
|
||||||
table.insert(players.display_list, non_players.otomo_list[0]);
|
table.insert(players.display_list, non_players.otomo_list[myself_id]);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -582,8 +582,6 @@ function players.update_player_list_(hunter_info_field_)
|
|||||||
end
|
end
|
||||||
|
|
||||||
for i = 0, count - 1 do
|
for i = 0, count - 1 do
|
||||||
|
|
||||||
|
|
||||||
local player_info = get_item_method:call(player_info_list, i);
|
local player_info = get_item_method:call(player_info_list, i);
|
||||||
if player_info == nil then
|
if player_info == nil then
|
||||||
goto continue
|
goto continue
|
||||||
|
|||||||
Reference in New Issue
Block a user