cerb plugin: clear ghosts on connection lost too
This commit is contained in:
@@ -75,7 +75,8 @@ public class CerberusPlugin extends Plugin
|
|||||||
@Subscribe
|
@Subscribe
|
||||||
public void onGameStateChanged(GameStateChanged event)
|
public void onGameStateChanged(GameStateChanged event)
|
||||||
{
|
{
|
||||||
if (event.getGameState() == GameState.LOGIN_SCREEN || event.getGameState() == GameState.HOPPING)
|
GameState gameState = event.getGameState();
|
||||||
|
if (gameState == GameState.LOGIN_SCREEN || gameState == GameState.HOPPING || gameState == GameState.CONNECTION_LOST)
|
||||||
{
|
{
|
||||||
ghosts.clear();
|
ghosts.clear();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user