client: warn about hooks fired prior to client being ready

This commit is contained in:
Adam
2017-01-19 17:20:37 -05:00
parent 43d7df1f87
commit ff30bedf50

View File

@@ -37,6 +37,12 @@ public class Hooks
public static void callHook(String name, Object object)
{
if (RuneLite.getClient() == null)
{
logger.warn("Event {} triggered prior to client being ready", name);
return;
}
switch (name)
{
case "experienceChanged":