public static void EnableAsyncTasks(this ICoreClientAPI api)
 {
     api.Event.LevelFinalize += () =>
     {
         if (!api.IsClientSystemLoaded <ClientSystemAsyncActions>())
         {
             api.InjectClientThread("AsyncActions", new ClientSystemAsyncActions(api.AsClientMain()));
         }
     };
 }