Clanchat: clear counter on login/connection lost instead of loading (#8068)
This commit is contained in:
committed by
Tomas Slusny
parent
03db31de2f
commit
e6d0e5e29c
@@ -393,7 +393,9 @@ public class ClanChatPlugin extends Plugin
|
||||
@Subscribe
|
||||
public void onGameStateChanged(GameStateChanged state)
|
||||
{
|
||||
if (state.getGameState() == GameState.LOADING)
|
||||
GameState gameState = state.getGameState();
|
||||
|
||||
if (gameState == GameState.LOGIN_SCREEN || gameState == GameState.CONNECTION_LOST || gameState == GameState.HOPPING)
|
||||
{
|
||||
clanMembers.clear();
|
||||
removeClanCounter();
|
||||
|
||||
Reference in New Issue
Block a user