Skip to content

Commit

Permalink
hiscore: use hiscore endpoint for world for player lookup op
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam- committed Nov 30, 2021
1 parent f6a3d22 commit 6ec534b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public void onMenuOptionClicked(MenuOptionClicked event)
&& event.getMenuOption().equals(LOOKUP))
{
final String target;
HiscoreEndpoint endpoint = HiscoreEndpoint.NORMAL;
HiscoreEndpoint endpoint;
if (event.getMenuAction() == MenuAction.RUNELITE_PLAYER)
{
// The player id is included in the event, so we can use that to get the player name,
Expand All @@ -199,6 +199,7 @@ public void onMenuOptionClicked(MenuOptionClicked event)
return;
}

endpoint = getWorldEndpoint();
target = player.getName();
}
else
Expand Down

0 comments on commit 6ec534b

Please sign in to comment.