diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua index 1ce9d65..48c5740 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/non_players.lua @@ -187,12 +187,13 @@ function non_players.update_my_otomos() if name ~= nil and name ~= "" then local level = otomo_create_data_level_field:get_data(first_otomo) or 0; - if non_players.otomo_list[0] == nil then - non_players.otomo_list[0] = non_players.new(0, name, level, players.types.my_otomo); + local myself_id = players.myself.id; + 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 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 diff --git a/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua b/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua index e692f7c..87221ab 100644 --- a/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua +++ b/reframework/autorun/MHR_Overlay/Damage_Meter/players.lua @@ -582,8 +582,6 @@ function players.update_player_list_(hunter_info_field_) end for i = 0, count - 1 do - - local player_info = get_item_method:call(player_info_list, i); if player_info == nil then goto continue