hunter: Remove unused lastActionTime field
This field was originally used to show a catch rate overlay, but all its
uses were removed in 76fbab60fc when the
overlay was removed due to unreliable behavior.
This commit is contained in:
@@ -76,9 +76,6 @@ public class HunterPlugin extends Plugin
|
||||
@Getter
|
||||
private final Map<WorldPoint, HunterTrap> traps = new HashMap<>();
|
||||
|
||||
@Getter
|
||||
private Instant lastActionTime = Instant.ofEpochMilli(0);
|
||||
|
||||
private WorldPoint lastTickLocalPlayerLocation;
|
||||
|
||||
@Provides
|
||||
@@ -98,7 +95,6 @@ public class HunterPlugin extends Plugin
|
||||
protected void shutDown() throws Exception
|
||||
{
|
||||
overlayManager.remove(overlay);
|
||||
lastActionTime = Instant.ofEpochMilli(0);
|
||||
traps.clear();
|
||||
}
|
||||
|
||||
@@ -124,7 +120,6 @@ public class HunterPlugin extends Plugin
|
||||
{
|
||||
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), trapLocation);
|
||||
traps.put(trapLocation, new HunterTrap(gameObject));
|
||||
lastActionTime = Instant.now();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -140,7 +135,6 @@ public class HunterPlugin extends Plugin
|
||||
{
|
||||
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), localPlayer.getWorldLocation());
|
||||
traps.put(trapLocation, new HunterTrap(gameObject));
|
||||
lastActionTime = Instant.now();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -168,7 +162,6 @@ public class HunterPlugin extends Plugin
|
||||
|
||||
log.debug("Trap placed by \"{}\" on {} facing {}", localPlayer.getName(), translatedTrapLocation, trapOrientation);
|
||||
traps.put(translatedTrapLocation, new HunterTrap(gameObject));
|
||||
lastActionTime = Instant.now();
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -201,7 +194,6 @@ public class HunterPlugin extends Plugin
|
||||
{
|
||||
myTrap.setState(HunterTrap.State.FULL);
|
||||
myTrap.resetTimer();
|
||||
lastActionTime = Instant.now();
|
||||
|
||||
if (config.maniacalMonkeyNotify() && myTrap.getObjectId() == ObjectID.MONKEY_TRAP)
|
||||
{
|
||||
@@ -222,7 +214,6 @@ public class HunterPlugin extends Plugin
|
||||
{
|
||||
myTrap.setState(HunterTrap.State.EMPTY);
|
||||
myTrap.resetTimer();
|
||||
lastActionTime = Instant.now();
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user