/// Asserts that a player was not disconnected, panicking
/// if they were.
Asserts that a player was not disconnected, panicking
if they were.
Asserts that a player was not disconnected panicking if they were .
pub fn assert_not_disconnected(player: &Player) {
    let mut disconnected = false;
    for packet in received_packets(player, None) {
        if packet.ty() == PacketType::DisconnectPlay {
            disconnected = true;
        }
    }
    assert!(!disconnected);
}
pub fn assert_not_disconnected ( player : & Player ) { let mut disconnected = false ; for packet in received_packets ( player , None ) { if packet . ty ( ) == PacketType :: DisconnectPlay { disconnected = true ; } } assert ! ( disconnected ) ; }
Asserts that a player was not disconnected, panicking
if they were.
Asserts that a player was not disconnected panicking if they were .
player
&Player