Pumpkin/pumpkin-protocol/src/client/login/c_set_compression.rs
2024-10-27 14:18:18 +01:00

17 lines
300 B
Rust

use pumpkin_macros::client_packet;
use serde::Serialize;
use crate::VarInt;
#[derive(Serialize)]
#[client_packet("login:login_compression")]
pub struct CSetCompression {
threshold: VarInt,
}
impl CSetCompression {
pub fn new(threshold: VarInt) -> Self {
Self { threshold }
}
}