mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-05-25 14:37:25 +00:00
to whoever at 4j made this code not adhere to any C standard: why
This commit is contained in:
@@ -27,14 +27,14 @@ void ContainerSetDataPacket::handle(PacketListener *listener)
|
||||
|
||||
void ContainerSetDataPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
containerId = dis->readByte();
|
||||
containerId = (int)dis->readByte();
|
||||
id = dis->readShort();
|
||||
value = dis->readShort();
|
||||
}
|
||||
|
||||
void ContainerSetDataPacket::write(DataOutputStream *dos) // throws IOException
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
dos->writeByte((std::byte)containerId);
|
||||
dos->writeShort(id);
|
||||
dos->writeShort(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user