mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 16:55:50 +00:00
to whoever at 4j made this code not adhere to any C standard: why
This commit is contained in:
@@ -14,12 +14,12 @@ ClientCommandPacket::ClientCommandPacket(int action)
|
||||
|
||||
void ClientCommandPacket::read(DataInputStream *dis)
|
||||
{
|
||||
action = dis->readByte();
|
||||
action = (int)dis->readByte();
|
||||
}
|
||||
|
||||
void ClientCommandPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
dos->writeByte(action & 0xff);
|
||||
dos->writeByte((std::byte)action & (std::byte)0xff);
|
||||
}
|
||||
|
||||
void ClientCommandPacket::handle(PacketListener *listener)
|
||||
@@ -30,4 +30,4 @@ void ClientCommandPacket::handle(PacketListener *listener)
|
||||
int ClientCommandPacket::getEstimatedSize()
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user