Merge pull request #4045 from Nightfirecat/clear-opponent-info-fields-on-shutdown

opponent info plugin: Clear fields on shutdown
This commit is contained in:
Tomas Slusny
2018-06-27 23:49:29 +02:00
committed by GitHub

View File

@@ -80,7 +80,7 @@ public class OpponentInfoPlugin extends Plugin
@Getter(AccessLevel.PACKAGE)
private Actor lastOpponent;
private Instant lastTime = null;
private Instant lastTime;
@Getter(AccessLevel.PACKAGE)
private final Map<String, Integer> oppInfoHealth = loadNpcHealth();
@@ -101,6 +101,8 @@ public class OpponentInfoPlugin extends Plugin
@Override
protected void shutDown() throws Exception
{
lastOpponent = null;
lastTime = null;
overlayManager.remove(opponentInfoOverlay);
overlayManager.remove(playerComparisonOverlay);
}