fuck redudant improts

This commit is contained in:
MeexReay 2024-11-14 11:01:46 +03:00
parent 9dfc6da081
commit 7526862a75
2 changed files with 3 additions and 3 deletions

View File

@ -176,7 +176,7 @@ impl Player {
self.server_conn.lock().unwrap().close();
let mut server_conn = MCConnTcp::new(server_conn);
if let Some(login_info) = &self.login_info {
login_info.write(config, &mut server_conn);
login_info.write(config, &mut server_conn).as_proxy()?;
}
self.server_recv_loop();
Ok(())

View File

@ -3,13 +3,13 @@ use rust_mc_proto::{
read_packet, write_packet, DataBufferReader, DataBufferWriter, MCConnTcp, Packet
};
use std::{
net::{SocketAddr, TcpListener, TcpStream},
net::{TcpListener, TcpStream},
sync::{
Arc, RwLock, RwLockReadGuard
}, thread,
};
use super::{config::{PlayerForwarding, ProxyConfig}, connection::Player, error::{AsProxyResult, ProxyError}, event::EventListener};
use super::{config::ProxyConfig, connection::Player, error::{AsProxyResult, ProxyError}, event::EventListener};
pub struct MeexProx {