Merge pull request #4811 from takuyakanbr/fix-seaweed

time tracking: fix detection of state for seaweed patches
This commit is contained in:
Tomas Slusny
2018-08-11 12:56:19 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

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

View File

@@ -126,7 +126,7 @@ public class BirdHouseTracker
{ {
boolean changed = false; 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 Map<BirdHouseSpace, BirdHouseData> newData = new HashMap<>();
final long currentTime = Instant.now().getEpochSecond(); final long currentTime = Instant.now().getEpochSecond();