Skip to content

Commit d8be009

Browse files
author
Sunnickel
committed
removed lines that threw an error
the types and used methods weren't suitable anymore
1 parent e566534 commit d8be009

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/bin/src/systems/connection_killer.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ pub fn connection_killer(
4747
);
4848
}
4949
} else {
50-
if disconnecting_player.is_some() {
51-
system_messages::player_leave::handle(
52-
disconnecting_player.unwrap().2,
53-
entity,
54-
);
55-
}
50+
system_messages::player_leave::handle(disconnecting_player.2, entity);
5651
}
5752
cmd.entity(entity).despawn();
5853
}

0 commit comments

Comments
 (0)