check right part of buffer? why does this move
This commit is contained in:
parent
318c108f14
commit
e67352c886
@ -340,7 +340,7 @@ impl<EG: EntityGateway> ServerState for CharacterServerState<EG> {
|
|||||||
-> Result<Box<dyn Iterator<Item = (ClientId, SendCharacterPacket)>>, CharacterError> {
|
-> Result<Box<dyn Iterator<Item = (ClientId, SendCharacterPacket)>>, CharacterError> {
|
||||||
Ok(match pkt {
|
Ok(match pkt {
|
||||||
RecvCharacterPacket::Login(login) => {
|
RecvCharacterPacket::Login(login) => {
|
||||||
if login.security_data[0..4] == [1,3,3,7] {
|
if login.security_data[8..12] == [1,3,3,7] {
|
||||||
Box::new(self.send_ship_list(id, login)?.into_iter().map(move |pkt| (id, pkt)))
|
Box::new(self.send_ship_list(id, login)?.into_iter().map(move |pkt| (id, pkt)))
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user