mirror of
https://github.com/italicsjenga/valence.git
synced 2024-12-24 06:51:30 +11:00
Update packet_inspector
This commit is contained in:
parent
5fb46178dd
commit
27033c758e
|
@ -68,4 +68,4 @@ num = "0.4"
|
||||||
protocol = []
|
protocol = []
|
||||||
|
|
||||||
[workspace]
|
[workspace]
|
||||||
members = ["packet-inspector", "valence_nbt"]
|
members = ["valence_nbt", "packet_inspector"]
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
[package]
|
[package]
|
||||||
name = "packet-inspector"
|
name = "packet_inspector"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
description = "A simple Minecraft proxy for inspecting packets."
|
description = "A simple Minecraft proxy for inspecting packets."
|
|
@ -46,9 +46,9 @@ impl Cli {
|
||||||
fn print(&self, d: &impl fmt::Debug) {
|
fn print(&self, d: &impl fmt::Debug) {
|
||||||
if self.timestamp {
|
if self.timestamp {
|
||||||
let now: DateTime<Utc> = Utc::now();
|
let now: DateTime<Utc> = Utc::now();
|
||||||
println!("{now} {d:?}");
|
println!("{now} {d:#?}");
|
||||||
} else {
|
} else {
|
||||||
println!("{d:?}");
|
println!("{d:#?}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ pub mod ident;
|
||||||
pub mod player_list;
|
pub mod player_list;
|
||||||
pub mod player_textures;
|
pub mod player_textures;
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
mod protocol;
|
pub mod protocol;
|
||||||
pub mod server;
|
pub mod server;
|
||||||
mod slab;
|
mod slab;
|
||||||
mod slab_rc;
|
mod slab_rc;
|
||||||
|
|
Loading…
Reference in a new issue