Esempio n. 1
0
 static void RemoveFromTeamPicker(On.RoR2.Chat.orig_SendPlayerDisconnectedMessage orig, NetworkUser user)
 {
     if (TeamPicker.instance)
     {
         TeamPicker.instance.RemovePlayer(user);
     }
     else
     {
         if (TeamPicker.PlayerStates.ContainsKey(user))
         {
             TeamPicker.PlayerStates.Remove(user);
         }
     }
     orig(user);
 }
 private void Chat_SendPlayerDisconnectedMessage(On.RoR2.Chat.orig_SendPlayerDisconnectedMessage orig, NetworkUser user)
 {
     return;
 }