to whoever at 4j made this code not adhere to any C standard: why

This commit is contained in:
Leah Anderson
2026-03-02 10:40:53 -07:00
parent f10f5845fd
commit daa04a789a
11 changed files with 59 additions and 59 deletions

View File

@@ -39,9 +39,9 @@ void ContainerClickPacket::handle(PacketListener *listener)
void ContainerClickPacket::read(DataInputStream *dis) //throws IOException
{
containerId = dis->readByte();
containerId = (int)dis->readByte();
slotNum = dis->readShort();
buttonNum = dis->readByte();
buttonNum = (int)dis->readByte();
uid = dis->readShort();
quickKey = dis->readBoolean();
@@ -50,9 +50,9 @@ void ContainerClickPacket::read(DataInputStream *dis) //throws IOException
void ContainerClickPacket::write(DataOutputStream *dos) // throws IOException
{
dos->writeByte(containerId);
dos->writeByte((std::byte)containerId);
dos->writeShort(slotNum);
dos->writeByte(buttonNum);
dos->writeByte((std::byte)buttonNum);
dos->writeShort(uid);
dos->writeBoolean(quickKey);