From 35ffca59e5e674183b9754bd62c58cd06b23fb5f Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 20 May 2018 16:41:08 -0400 Subject: [PATCH] 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 --- .../runelite/client/plugins/lowmemory/LowMemoryPlugin.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/runelite-client/src/main/java/net/runelite/client/plugins/lowmemory/LowMemoryPlugin.java b/runelite-client/src/main/java/net/runelite/client/plugins/lowmemory/LowMemoryPlugin.java index 039be92e82..f6da263a0a 100644 --- a/runelite-client/src/main/java/net/runelite/client/plugins/lowmemory/LowMemoryPlugin.java +++ b/runelite-client/src/main/java/net/runelite/client/plugins/lowmemory/LowMemoryPlugin.java @@ -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