Skip to content

Commit

Permalink
Merge pull request runelite#2201 from Abextm/farm-tele
Browse files Browse the repository at this point in the history
farmingtracker: Prevent saving when teleporting
  • Loading branch information
Adam- authored May 1, 2018
2 parents a131a0b + aafdcc1 commit 0d1045e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public void onGameTick(GameTick t)

WorldPoint loc = lastTickLoc;
lastTickLoc = client.getLocalPlayer().getWorldLocation();
if (loc == null)
if (loc == null || loc.getRegionID() != lastTickLoc.getRegionID())
{
return;
}
Expand Down

0 comments on commit 0d1045e

Please sign in to comment.