mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-29 02:16:17 +00:00
Networking Fixes & Updates
This commit is contained in:
@@ -20,10 +20,12 @@ DisconnectPacket::DisconnectPacket(eDisconnectReason reason)
|
||||
void DisconnectPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
reason = (eDisconnectReason)dis->readInt();
|
||||
fprintf(stderr, "[PKT] DisconnectPacket::read reason=%d\n", reason);
|
||||
}
|
||||
|
||||
void DisconnectPacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
fprintf(stderr, "[PKT] DisconnectPacket::write reason=%d\n", reason);
|
||||
dos->writeInt((int)reason);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user