time tracking: fix detection of state for seaweed patches

This commit is contained in:
takuyakanbr
2018-08-10 05:25:23 +08:00
parent 1bd82ad260
commit 3f033e832a
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ public class TimeTrackingPlugin extends Plugin
WorldPoint loc = lastTickLocation;
lastTickLocation = client.getLocalPlayer().getWorldLocation();
if (loc == null || loc.getPlane() != 0 || loc.getRegionID() != lastTickLocation.getRegionID())
if (loc == null || loc.getRegionID() != lastTickLocation.getRegionID())
{
return;
}

View File

@@ -126,7 +126,7 @@ public class BirdHouseTracker
{
boolean changed = false;
if (FOSSIL_ISLAND_REGIONS.contains(location.getRegionID()))
if (FOSSIL_ISLAND_REGIONS.contains(location.getRegionID()) && location.getPlane() == 0)
{
final Map<BirdHouseSpace, BirdHouseData> newData = new HashMap<>();
final long currentTime = Instant.now().getEpochSecond();