Merge pull request #1351 from LeviSchuck/reset-xp

Reset XP on log-in of another character / mode
This commit is contained in:
Tomas Slusny
2018-04-10 11:35:46 +02:00
committed by GitHub

View File

@@ -153,6 +153,7 @@ public class XpTrackerPlugin extends Plugin
lastUsername = client.getUsername(); lastUsername = client.getUsername();
lastWorldType = type; lastWorldType = type;
xpPanel.resetAllInfoBoxes(); xpPanel.resetAllInfoBoxes();
xpInfos.clear();
} }
} }
else if (event.getGameState() == GameState.LOGIN_SCREEN) else if (event.getGameState() == GameState.LOGIN_SCREEN)