mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-26 05:16:46 +00:00
to whoever at 4j made this code not adhere to any C standard: why
This commit is contained in:
@@ -24,17 +24,17 @@ void ContainerButtonClickPacket::handle(PacketListener *listener)
|
||||
|
||||
void ContainerButtonClickPacket::read(DataInputStream *dis)
|
||||
{
|
||||
containerId = dis->readByte();
|
||||
buttonId = dis->readByte();
|
||||
containerId = (int)dis->readByte();
|
||||
buttonId = (int)dis->readByte();
|
||||
}
|
||||
|
||||
void ContainerButtonClickPacket::write(DataOutputStream *dos)
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
dos->writeByte(buttonId);
|
||||
dos->writeByte((std::byte)containerId);
|
||||
dos->writeByte((std::byte)buttonId);
|
||||
}
|
||||
|
||||
int ContainerButtonClickPacket::getEstimatedSize()
|
||||
{
|
||||
return 2;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user