mirror of
https://github.com/timvisee/lazymc.git
synced 2025-08-01 20:52:07 -07:00
Remove lobby debug code
This commit is contained in:
@@ -29,9 +29,6 @@ use crate::proto::{self, Client, ClientInfo, ClientState, RawPacket};
|
|||||||
use crate::proxy;
|
use crate::proxy;
|
||||||
use crate::server::{Server, State};
|
use crate::server::{Server, State};
|
||||||
|
|
||||||
// TODO: remove this before releasing feature
|
|
||||||
pub const DONT_START_SERVER: bool = false;
|
|
||||||
|
|
||||||
/// Interval to send keep-alive packets at.
|
/// Interval to send keep-alive packets at.
|
||||||
const KEEP_ALIVE_INTERVAL: Duration = Duration::from_secs(10);
|
const KEEP_ALIVE_INTERVAL: Duration = Duration::from_secs(10);
|
||||||
|
|
||||||
|
@@ -79,8 +79,7 @@ pub mod packets {
|
|||||||
|
|
||||||
/// Client state.
|
/// Client state.
|
||||||
///
|
///
|
||||||
/// Note: this does not keep track of compression/encryption states because packets are never
|
/// Note: this does not keep track of encryption states.
|
||||||
/// inspected when these modes are enabled.
|
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct Client {
|
pub struct Client {
|
||||||
/// Current client state.
|
/// Current client state.
|
||||||
|
@@ -135,10 +135,8 @@ pub async fn serve(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if !lobby::DONT_START_SERVER {
|
// Start server if not starting yet
|
||||||
// Start server if not starting yet
|
Server::start(config.clone(), server.clone(), username).await;
|
||||||
Server::start(config.clone(), server.clone(), username).await;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Use join occupy methods
|
// Use join occupy methods
|
||||||
for method in &config.join.methods {
|
for method in &config.join.methods {
|
||||||
|
Reference in New Issue
Block a user