low detail plugin: apply low detail on startup if on login screen

Fix race with changing memory mode when loading which causes sounds to
not load
This commit is contained in:
Adam
2018-05-20 16:41:08 -04:00
parent 97caee3e04
commit 35ffca59e5

View File

@@ -44,7 +44,10 @@ public class LowMemoryPlugin extends Plugin
@Override
protected void startUp() throws Exception
{
client.changeMemoryMode(true);
if (client.getGameState() == GameState.LOGGED_IN)
{
client.changeMemoryMode(true);
}
}
@Override