Merge pull request #4811 from takuyakanbr/fix-seaweed
time tracking: fix detection of state for seaweed patches
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user