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
|
@Getter
|
||||||
private final Map<WorldPoint, HunterTrap> traps = new HashMap<>();
|
private final Map<WorldPoint, HunterTrap> traps = new HashMap<>();
|
||||||
|
|
||||||
@Getter
|
|
||||||
private Instant lastActionTime = Instant.ofEpochMilli(0);
|
|
||||||
|
|
||||||
private WorldPoint lastTickLocalPlayerLocation;
|
private WorldPoint lastTickLocalPlayerLocation;
|
||||||
|
|
||||||
@Provides
|
@Provides
|
||||||
@@ -98,7 +95,6 @@ public class HunterPlugin extends Plugin
|
|||||||
protected void shutDown() throws Exception
|
protected void shutDown() throws Exception
|
||||||
{
|
{
|
||||||
overlayManager.remove(overlay);
|
overlayManager.remove(overlay);
|
||||||
lastActionTime = Instant.ofEpochMilli(0);
|
|
||||||
traps.clear();
|
traps.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -124,7 +120,6 @@ public class HunterPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), trapLocation);
|
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), trapLocation);
|
||||||
traps.put(trapLocation, new HunterTrap(gameObject));
|
traps.put(trapLocation, new HunterTrap(gameObject));
|
||||||
lastActionTime = Instant.now();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -140,7 +135,6 @@ public class HunterPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), localPlayer.getWorldLocation());
|
log.debug("Trap placed by \"{}\" on {}", localPlayer.getName(), localPlayer.getWorldLocation());
|
||||||
traps.put(trapLocation, new HunterTrap(gameObject));
|
traps.put(trapLocation, new HunterTrap(gameObject));
|
||||||
lastActionTime = Instant.now();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -168,7 +162,6 @@ public class HunterPlugin extends Plugin
|
|||||||
|
|
||||||
log.debug("Trap placed by \"{}\" on {} facing {}", localPlayer.getName(), translatedTrapLocation, trapOrientation);
|
log.debug("Trap placed by \"{}\" on {} facing {}", localPlayer.getName(), translatedTrapLocation, trapOrientation);
|
||||||
traps.put(translatedTrapLocation, new HunterTrap(gameObject));
|
traps.put(translatedTrapLocation, new HunterTrap(gameObject));
|
||||||
lastActionTime = Instant.now();
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -201,7 +194,6 @@ public class HunterPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
myTrap.setState(HunterTrap.State.FULL);
|
myTrap.setState(HunterTrap.State.FULL);
|
||||||
myTrap.resetTimer();
|
myTrap.resetTimer();
|
||||||
lastActionTime = Instant.now();
|
|
||||||
|
|
||||||
if (config.maniacalMonkeyNotify() && myTrap.getObjectId() == ObjectID.MONKEY_TRAP)
|
if (config.maniacalMonkeyNotify() && myTrap.getObjectId() == ObjectID.MONKEY_TRAP)
|
||||||
{
|
{
|
||||||
@@ -222,7 +214,6 @@ public class HunterPlugin extends Plugin
|
|||||||
{
|
{
|
||||||
myTrap.setState(HunterTrap.State.EMPTY);
|
myTrap.setState(HunterTrap.State.EMPTY);
|
||||||
myTrap.resetTimer();
|
myTrap.resetTimer();
|
||||||
lastActionTime = Instant.now();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user