Add Serverbound Confirm Teleportation

This commit is contained in:
Snowiiii committed 2024-08-03 13:25:28 +02:00
1 parent f111c7881c
commit a45a43397c
7 files changed
+81 -27

No files matched your search

+1
View File
@@ -3,4 +3,5 @@
pub mod config;
pub mod handshake;
pub mod login;
pub mod play;
pub mod status;
+15
View File
@@ -0,0 +1,15 @@
use crate::{ServerPacket, VarInt};
pub struct SConfirmTeleport {
teleport_id: VarInt,
}
impl ServerPacket for SConfirmTeleport {
const PACKET_ID: VarInt = 0x00;
fn read(bytebuf: &mut crate::bytebuf::ByteBuffer) -> Self {
Self {
teleport_id: bytebuf.get_var_int(),
}
}
}