mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-04 13:26:30 +00:00
to whoever at 4j made this code not adhere to any C standard: why
This commit is contained in:
@@ -34,7 +34,7 @@ void ContainerSetSlotPacket::read(DataInputStream *dis) //throws IOException
|
||||
{
|
||||
// 4J Stu - TU-1 hotfix
|
||||
// Fix for #13142 - Holding down the A button on the furnace ingredient slot causes the UI to display incorrect item counts
|
||||
BYTE byteId = dis->readByte();
|
||||
std::byte byteId = dis->readByte();
|
||||
containerId = *(char *)&byteId;
|
||||
slot = dis->readShort();
|
||||
item = readItem(dis);
|
||||
@@ -42,7 +42,7 @@ void ContainerSetSlotPacket::read(DataInputStream *dis) //throws IOException
|
||||
|
||||
void ContainerSetSlotPacket::write(DataOutputStream *dos) //throws IOException
|
||||
{
|
||||
dos->writeByte(containerId);
|
||||
dos->writeByte((std::byte)containerId);
|
||||
dos->writeShort(slot);
|
||||
writeItem(item, dos);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user