static void Postfix(Lord lord)
 {
     foreach (Building_InfiniteStorage storage in WorldComp.GetAllInfiniteStorages())
     {
         storage.Reclaim();
     }
 }
 public static void ReclaimThings()
 {
     foreach (Building_InfiniteStorage storage in WorldComp.GetAllInfiniteStorages())
     {
         if (storage.Map != null && storage.Spawned)
         {
             storage.Reclaim();
         }
     }
 }
 static void Prefix(IEnumerable <Pawn> pawns, Faction faction, int exitFromTile, int directionTile, int destinationTile, bool sendMessage)
 {
     if (faction == Faction.OfPlayer)
     {
         List <Pawn> p = new List <Pawn>(pawns);
         if (p.Count > 0)
         {
             foreach (Building_InfiniteStorage storage in WorldComp.GetAllInfiniteStorages())
             {
                 storage.Reclaim();
             }
         }
     }
 }
 static void Prefix()
 {
     try
     {
         foreach (Building_InfiniteStorage s in WorldComp.GetAllInfiniteStorages())
         {
             try
             {
                 s.ForceReclaim();
             }
             catch (Exception e)
             {
                 Log.Warning("Error while reclaiming apparel for infinite storage\n" + e.Message);
             }
         }
     }
     catch (Exception e)
     {
         Log.Warning("Error while reclaiming items\n" + e.Message);
     }
 }