public override void PostSpawnSetup(bool respawningAfterLoad) { base.PostSpawnSetup(respawningAfterLoad); if (properties.linkToParentsStorage != null) { linkedStorage = (Comp_StorageAbstract)AccessTools .Method(typeof(Extensions), "GetStorageComponent") .MakeGenericMethod(properties.linkToParentsStorage) .Invoke(null, new object[] { parent.Position, parent.Map }); } else { linkedStorage = parent.Map.GetStorageCoordinator().DebugGetAnyStorage(); Utility.Debug($"{this} connected to {linkedStorage} in {GetSlotGroup()}"); } linkedStorage?.Notify_IOAdded(this); }