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

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