Addition of PlayerInstance getTimedHuntingZone method.

This commit is contained in:
MobiusDevelopment
2021-06-28 23:24:16 +00:00
parent c9659c5cbe
commit 8adca41278
7 changed files with 84 additions and 0 deletions

View File

@@ -14391,6 +14391,18 @@ public class PlayerInstance extends Playable
return false;
}
public TimedHuntingZoneHolder getTimedHuntingZone()
{
for (TimedHuntingZoneHolder holder : TimedHuntingZoneData.getInstance().getAllHuntingZones())
{
if (isInTimedHuntingZone(holder.getZoneId()))
{
return holder;
}
}
return null;
}
public void startTimedHuntingZone(int zoneId, long delay)
{
// Stop previous task.