private static void smethod_2(Session session_0, ClientMessage clientMessage_0)
 {
     if (session_0 != null)
     {
         if (!SpaceManager.InstanceIsLoadedForSpace(session_0.AbsoluteSpaceId))
         {
             if (SpaceManager.TryLoadSpaceInstance(session_0.AbsoluteSpaceId))
             {
             }
             else
             {
                 Console.WriteLine("ERROR");
             }
         }
         SpaceInstance instanceBySpaceId = SpaceManager.GetInstanceBySpaceId(session_0.AbsoluteSpaceId);
         if (instanceBySpaceId != null)
         {
             session_0.SpaceAuthed = true;
         }
         if (((instanceBySpaceId != null) && !session_0.SpaceJoined) && (session_0.SpaceAuthed && !instanceBySpaceId.Info.BlackList.Contains(session_0.CharacterInfo.Username)))
         {
             if (!instanceBySpaceId.AddUserToSpace(session_0))
             {
                 SpaceManager.RemoveUserFromSpace(session_0, true);
             }
             else
             {
                 session_0.SpaceAuthed = true;
                 session_0.SpaceJoined = true;
                 instanceBySpaceId.SendObjects(session_0);
                 LaptopHandler.MarkUpdateNeeded(session_0, 0, false);
                 SpaceActor actorByReferenceId = instanceBySpaceId.GetActorByReferenceId(session_0.CharacterId, SpaceActorType.UserCharacter);
                 if (actorByReferenceId == null)
                 {
                     session_0.SendData(SpaceUserRemovedComposer.SingleCompose());
                 }
                 else
                 {
                     instanceBySpaceId.BroadcastMessage(SpaceObjectListComposer.BroadcastCompose(actorByReferenceId), session_0.CharacterId, true);
                 }
             }
         }
         else
         {
             session_0.SendData(SpaceUserRemovedComposer.SingleCompose());
         }
     }
 }