runelite-client: move all main loop checks info try/catch

This commit is contained in:
Adam
2018-01-20 08:39:36 -05:00
parent 3172de963c
commit d1156a3b01

View File

@@ -84,11 +84,6 @@ public class Hooks
try try
{ {
death.check(); death.check();
}
catch (Exception ex)
{
log.warn("error during death check", ex);
}
// tick pending scheduled tasks // tick pending scheduled tasks
scheduler.tick(); scheduler.tick();
@@ -98,6 +93,11 @@ public class Hooks
chatMessageManager.process(); chatMessageManager.process();
} }
catch (Exception ex)
{
log.warn("error during main loop tasks", ex);
}
}
public static void draw(MainBufferProvider mainBufferProvider, Graphics graphics, int x, int y) public static void draw(MainBufferProvider mainBufferProvider, Graphics graphics, int x, int y)
{ {