Skip to content

Commit

Permalink
Undo change to the shortestPath logic
Browse files Browse the repository at this point in the history
  • Loading branch information
pajlada committed Nov 16, 2024
1 parent 9420028 commit 7bdcdeb
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/main/java/com/questhelper/steps/DetailedQuestStep.java
Original file line number Diff line number Diff line change
Expand Up @@ -910,16 +910,13 @@ public void setShortestPath()
{
if (worldPoint != null)
{
if (getQuestHelper().getConfig().useShortestPath())
WorldPoint playerWp = client.getLocalPlayer().getWorldLocation();
if (getQuestHelper().getConfig().useShortestPath() && playerWp != null)
{
WorldPoint playerWp = client.getLocalPlayer().getWorldLocation();
if (getQuestHelper().getConfig().useShortestPath() && playerWp != null)
{
Map<String, Object> data = new HashMap<>();
data.put("start", playerWp);
data.put("target", worldPoint);
eventBus.post(new PluginMessage("shortestpath", "path", data));
}
Map<String, Object> data = new HashMap<>();
data.put("start", playerWp);
data.put("target", worldPoint);
eventBus.post(new PluginMessage("shortestpath", "path", data));
}
}
}
Expand Down

0 comments on commit 7bdcdeb

Please sign in to comment.