Fix color tags in OpponentInfo

This commit is contained in:
Seth
2018-02-03 11:38:56 -06:00
parent 2c2af1c814
commit 8e3e92c668

View File

@@ -102,8 +102,8 @@ class OpponentInfoOverlay extends Overlay
{
lastTime = Instant.now();
lastRatio = (float) opponent.getHealthRatio() / (float) opponent.getHealth();
opponentName = opponent.getName();
lastMaxHealth = oppInfoHealth.get(opponent.getName() + "_" + opponent.getCombatLevel());
opponentName = opponent.getName().replaceAll("<[^>]*>", "");
lastMaxHealth = oppInfoHealth.get(opponentName + "_" + opponent.getCombatLevel());
}
if (Duration.between(Instant.now(), lastTime).abs().compareTo(WAIT) > 0)