Fix color tags in OpponentInfo
This commit is contained in:
@@ -102,8 +102,8 @@ class OpponentInfoOverlay extends Overlay
|
|||||||
{
|
{
|
||||||
lastTime = Instant.now();
|
lastTime = Instant.now();
|
||||||
lastRatio = (float) opponent.getHealthRatio() / (float) opponent.getHealth();
|
lastRatio = (float) opponent.getHealthRatio() / (float) opponent.getHealth();
|
||||||
opponentName = opponent.getName();
|
opponentName = opponent.getName().replaceAll("<[^>]*>", "");
|
||||||
lastMaxHealth = oppInfoHealth.get(opponent.getName() + "_" + opponent.getCombatLevel());
|
lastMaxHealth = oppInfoHealth.get(opponentName + "_" + opponent.getCombatLevel());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Duration.between(Instant.now(), lastTime).abs().compareTo(WAIT) > 0)
|
if (Duration.between(Instant.now(), lastTime).abs().compareTo(WAIT) > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user