Exemple #1
0
 public void Activate()
 {
     if (_sessionManager == null)
     {
         return;
     }
     BlockLimiterConfig.Instance.AllLimits =
         new HashSet <LimitItem>(
             Utilities.UpdateLimits(BlockLimiterConfig.Instance.UseVanillaLimits));
     Task.Run(() =>
     {
         var test = Torch.InvokeAsync(GridCache.Update);
         Task.WaitAny(test);
         if (test.Result <= 0)
         {
             return;
         }
         if (BlockLimiterConfig.Instance.BlockOwnershipTransfer)
         {
             Block.FixIds();
         }
         ResetLimits();
     });
 }