runelite: fix check for client before requesting itemmanager

If outdated, this.client is null but client is not null. Invoking get() on the item manager provider will make guice late construct it and it has a dependency on client.
This commit is contained in:
Adam
2018-04-29 12:46:56 -04:00
parent 1ad35ff2d1
commit c567ca277a

View File

@@ -176,7 +176,7 @@ public class RuneLite
eventBus.register(commandManager);
eventBus.register(pluginManager);
eventBus.register(clanManager);
if (client != null)
if (this.client != null)
{
eventBus.register(itemManager.get());
}