farmingtracker: Prevent saving when teleporting

When teleporting to a updating region (ardy teleport), it would save the new region's varbits to the old region's config.
This commit is contained in:
Max Weber
2018-04-30 18:14:59 -06:00
parent 41342be02d
commit f3a8cd9ba9

View File

@@ -128,7 +128,7 @@ public class FarmingTrackerPlugin extends Plugin
WorldPoint loc = lastTickLoc;
lastTickLoc = client.getLocalPlayer().getWorldLocation();
if (loc == null)
if (loc == null || loc.getRegionID() != lastTickLoc.getRegionID())
{
return;
}