client: flash only during LOGGED_IN game state (#7782)

Fixes #7316
This commit is contained in:
Andrew Fulton
2019-02-11 03:18:00 -06:00
committed by Tomas Slusny
parent 955ef181e8
commit 3623efe9e5

View File

@@ -154,13 +154,13 @@ public class Notifier
public void processFlash(final Graphics2D graphics)
{
if (flashStart == null)
if (flashStart == null || client.getGameCycle() % 40 >= 20)
{
return;
}
if (client.getGameCycle() % 40 >= 20)
else if (client.getGameState() != GameState.LOGGED_IN)
{
flashStart = null;
return;
}